Lines Matching refs:measured_dir
18 static int _run_measured_process(const char *measured_dir, u32 *monitored_pid, in _run_measured_process() argument
26 execlp("./ima_setup.sh", "./ima_setup.sh", cmd, measured_dir, in _run_measured_process()
38 static int run_measured_process(const char *measured_dir, u32 *monitored_pid) in run_measured_process() argument
40 return _run_measured_process(measured_dir, monitored_pid, "run"); in run_measured_process()
69 const char *measured_dir; in test_test_ima() local
89 measured_dir = mkdtemp(measured_dir_template); in test_test_ima()
90 if (CHECK(measured_dir == NULL, "mkdtemp", "err %d\n", errno)) in test_test_ima()
93 snprintf(cmd, sizeof(cmd), "./ima_setup.sh setup %s", measured_dir); in test_test_ima()
104 err = run_measured_process(measured_dir, &skel->bss->monitored_pid); in test_test_ima()
119 err = run_measured_process(measured_dir, &skel->bss->monitored_pid); in test_test_ima()
144 err = _run_measured_process(measured_dir, &skel->bss->monitored_pid, in test_test_ima()
150 err = run_measured_process(measured_dir, &skel->bss->monitored_pid); in test_test_ima()
177 err = run_measured_process(measured_dir, &skel->bss->monitored_pid); in test_test_ima()
194 err = _run_measured_process(measured_dir, &skel->bss->monitored_pid, in test_test_ima()
207 err = _run_measured_process(measured_dir, &skel->bss->monitored_pid, in test_test_ima()
225 err = _run_measured_process(measured_dir, &skel->bss->monitored_pid, in test_test_ima()
234 snprintf(cmd, sizeof(cmd), "./ima_setup.sh cleanup %s", measured_dir); in test_test_ima()