Home
last modified time | relevance | path

Searched refs:puf (Results 1 – 1 of 1) sorted by relevance

/linux/security/apparmor/
H A Dpolicy_unpack_test.c54 static struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf, in build_aa_ext_struct() argument
114 struct policy_unpack_fixture *puf; in policy_unpack_test_init() local
116 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init()
117 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, puf); in policy_unpack_test_init()
119 puf->e_size = e_size; in policy_unpack_test_init()
120 puf->e = build_aa_ext_struct(puf, test, e_size); in policy_unpack_test_init()
122 test->priv = puf; in policy_unpack_test_init()
128 struct policy_unpack_fixture *puf = test->priv; in policy_unpack_test_inbounds_when_inbounds() local
130 KUNIT_EXPECT_TRUE(test, aa_inbounds(puf->e, 0)); in policy_unpack_test_inbounds_when_inbounds()
131 KUNIT_EXPECT_TRUE(test, aa_inbounds(puf->e, puf->e_size / 2)); in policy_unpack_test_inbounds_when_inbounds()
[all …]