Home
last modified time | relevance | path

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

/security/apparmor/
A Dpolicy_unpack_test.c124 test->priv = puf; in policy_unpack_test_init()
195 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_null_name()
209 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_name()
227 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_blob_out_of_bounds()
268 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_str_out_of_bounds()
282 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_null_name()
299 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_name()
319 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_strdup_out_of_bounds()
407 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1() argument
417 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
[all …]
A DKconfig116 running KUnit test harness and are not for inclusion into a
/security/landlock/
A Did.c44 static void __init test_init_min(struct kunit *const test) in test_init_min() argument
70 test, atomic64_read(&counter), first_init, in test_init_once()
136 KUNIT_EXPECT_EQ(test, in test_range1_rand0()
150 KUNIT_EXPECT_EQ(test, in test_range1_rand1()
164 KUNIT_EXPECT_EQ(test, in test_range1_rand15()
178 KUNIT_EXPECT_EQ(test, in test_range1_rand16()
192 KUNIT_EXPECT_EQ(test, in test_range2_rand0()
206 KUNIT_EXPECT_EQ(test, in test_range2_rand1()
220 KUNIT_EXPECT_EQ(test, in test_range2_rand2()
234 KUNIT_EXPECT_EQ(test, in test_range2_rand15()
[all …]
A Daudit.c233 KUNIT_EXPECT_EQ(test, 0, in test_get_denied_layer()
239 KUNIT_EXPECT_EQ(test, 1, in test_get_denied_layer()
245 KUNIT_EXPECT_EQ(test, 1, in test_get_denied_layer()
251 KUNIT_EXPECT_EQ(test, 1, in test_get_denied_layer()
254 KUNIT_EXPECT_EQ(test, access, in test_get_denied_layer()
259 KUNIT_EXPECT_EQ(test, 1, in test_get_denied_layer()
265 KUNIT_EXPECT_EQ(test, 4, in test_get_denied_layer()
320 KUNIT_EXPECT_EQ(test, 0, in test_get_layer_from_deny_masks()
327 KUNIT_EXPECT_EQ(test, 2, in test_get_layer_from_deny_masks()
337 KUNIT_EXPECT_EQ(test, 15, in test_get_layer_from_deny_masks()
[all …]
A Ddomain.c160 static void test_get_layer_deny_mask(struct kunit *const test) in test_get_layer_deny_mask() argument
165 KUNIT_EXPECT_EQ(test, 0, in test_get_layer_deny_mask()
168 KUNIT_EXPECT_EQ(test, 0x3, in test_get_layer_deny_mask()
172 KUNIT_EXPECT_EQ(test, 0, in test_get_layer_deny_mask()
175 KUNIT_EXPECT_EQ(test, 0xf0, in test_get_layer_deny_mask()
217 static void test_landlock_get_deny_masks(struct kunit *const test) in test_landlock_get_deny_masks() argument
227 KUNIT_EXPECT_EQ(test, 0x1, in test_landlock_get_deny_masks()
231 KUNIT_EXPECT_EQ(test, 0x20, in test_landlock_get_deny_masks()
236 test, 0x21, in test_landlock_get_deny_masks()
A Dfs.c459 static void test_no_more_access(struct kunit *const test) in test_no_more_access() argument
604 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_none()
606 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_none()
621 KUNIT_EXPECT_EQ(test, BIT_ULL(0), in test_scope_to_request_with_exec_some()
623 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_some()
636 KUNIT_EXPECT_TRUE(test, scope_to_request(0, &layer_masks)); in test_scope_to_request_without_access()
637 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_without_access()
639 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_without_access()
673 static void test_is_eacces_with_none(struct kunit *const test) in test_is_eacces_with_none() argument
683 static void test_is_eacces_with_refer(struct kunit *const test) in test_is_eacces_with_refer() argument
[all …]
/security/ipe/
A Dpolicy_tests.c247 static void ipe_parser_unsigned_test(struct kunit *test) in ipe_parser_unsigned_test() argument
249 const struct policy_case *p = test->param_value; in ipe_parser_unsigned_test()
255 KUNIT_EXPECT_EQ(test, PTR_ERR(pol), p->errno); in ipe_parser_unsigned_test()
259 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pol); in ipe_parser_unsigned_test()
260 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, pol->parsed); in ipe_parser_unsigned_test()
261 KUNIT_EXPECT_STREQ(test, pol->text, p->policy); in ipe_parser_unsigned_test()
262 KUNIT_EXPECT_PTR_EQ(test, NULL, pol->pkcs7); in ipe_parser_unsigned_test()
263 KUNIT_EXPECT_EQ(test, 0, pol->pkcs7len); in ipe_parser_unsigned_test()
274 static void ipe_parser_widestring_test(struct kunit *test) in ipe_parser_widestring_test() argument
281 KUNIT_EXPECT_TRUE(test, IS_ERR_OR_NULL(pol)); in ipe_parser_widestring_test()
A DKconfig109 running KUnit test harness and are not for inclusion into a
/security/
A DKconfig.hardening106 are advised to test this feature on your expected workload before

Completed in 17 milliseconds