Lines Matching refs:data_path
421 static int add_signature_to_xattr(const char *data_path, const char *sig_path)
439 ret = setxattr(data_path, "user.sig", sig, size, 0);
446 static int test_open_file(struct test_sig_in_xattr *skel, char *data_path,
452 ret = open(data_path, O_RDONLY);
468 char data_path[PATH_MAX];
480 snprintf(data_path, PATH_MAX, "%s/data-file", tmp_dir);
520 if (test_open_file(skel, data_path, pid, true, "open_1"))
529 if (test_open_file(skel, data_path, pid, false, "open_2"))
535 ret = add_signature_to_xattr(data_path, sig_path);
539 if (test_open_file(skel, data_path, pid, true, "open_3"))
545 ret = add_signature_to_xattr(data_path, NULL);
548 test_open_file(skel, data_path, pid, false, "open_4");