| H A D | verify_pkcs7_sig.c | 399 static int add_signature_to_xattr(const char *data_path, const char *sig_path) in test_verify_pkcs7_sig_from_map() 417 ret = setxattr(data_path, "user.sig", sig, size, 0); in get_signature_size() 424 static int test_open_file(struct test_sig_in_xattr *skel, char *data_path, in add_signature_to_xattr() 430 ret = open(data_path, O_RDONLY); in add_signature_to_xattr() 446 char data_path[PATH_MAX]; in test_open_file() argument 458 snprintf(data_path, PATH_MAX, "%s/data-file", tmp_dir); in test_open_file() 498 if (test_open_file(skel, data_path, pid, true, "open_1")) in test_pkcs7_sig_fsverity() 507 if (test_open_file(skel, data_path, pid, false, "open_2")) in test_pkcs7_sig_fsverity() 513 ret = add_signature_to_xattr(data_path, sig_path); in test_pkcs7_sig_fsverity() 517 if (test_open_file(skel, data_path, pi in test_pkcs7_sig_fsverity() 421 add_signature_to_xattr(const char * data_path,const char * sig_path) add_signature_to_xattr() argument 468 char data_path[PATH_MAX]; test_pkcs7_sig_fsverity() local [all...] |