Searched refs:puf (Results 1 – 1 of 1) sorted by relevance
/kernel/linux/linux-5.10/security/apparmor/ |
D | policy_unpack_test.c | 51 struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf, in build_aa_ext_struct() argument 112 struct policy_unpack_fixture *puf; in policy_unpack_test_init() local 114 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init() 115 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, puf); in policy_unpack_test_init() 117 puf->e_size = e_size; in policy_unpack_test_init() 118 puf->e = build_aa_ext_struct(puf, test, e_size); in policy_unpack_test_init() 120 test->priv = puf; in policy_unpack_test_init() 126 struct policy_unpack_fixture *puf = test->priv; in policy_unpack_test_inbounds_when_inbounds() local 128 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, 0)); in policy_unpack_test_inbounds_when_inbounds() 129 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, puf->e_size / 2)); in policy_unpack_test_inbounds_when_inbounds() [all …]
|