Searched refs:aa_inbounds (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/security/apparmor/ |
D | policy_unpack.c | 162 VISIBLE_IF_KUNIT bool aa_inbounds(struct aa_ext *e, size_t size) in aa_inbounds() function 166 EXPORT_SYMBOL_IF_KUNIT(aa_inbounds); 180 if (!aa_inbounds(e, sizeof(u16))) in aa_unpack_u16_chunk() 184 if (!aa_inbounds(e, size)) in aa_unpack_u16_chunk() 199 if (!aa_inbounds(e, 1)) in aa_unpack_X() 260 if (!aa_inbounds(e, sizeof(u8))) in unpack_u8() 278 if (!aa_inbounds(e, sizeof(u32))) in aa_unpack_u32() 297 if (!aa_inbounds(e, sizeof(u64))) in aa_unpack_u64() 336 if (!aa_inbounds(e, sizeof(u16))) in aa_unpack_array() 355 if (!aa_inbounds(e, sizeof(u32))) in aa_unpack_blob() [all …]
|
D | policy_unpack_test.c | 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() 132 KUNIT_EXPECT_TRUE(test, aa_inbounds(puf->e, puf->e_size)); in policy_unpack_test_inbounds_when_inbounds() 139 KUNIT_EXPECT_FALSE(test, aa_inbounds(puf->e, puf->e_size + 1)); in policy_unpack_test_inbounds_when_out_of_bounds()
|
/linux-6.12.1/security/apparmor/include/ |
D | policy_unpack.h | 169 bool aa_inbounds(struct aa_ext *e, size_t size);
|