Home
last modified time | relevance | path

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

/openbmc/linux/security/apparmor/
H A Dpolicy_unpack_test.c35 #define TEST_BLOB_DATA_SIZE (ARRAY_SIZE(TEST_BLOB_DATA)) macro
43 (TEST_BLOB_BUF_OFFSET + 5 + TEST_BLOB_DATA_SIZE)
97 *(buf + 3 + strlen(TEST_BLOB_NAME) + 2) = TEST_BLOB_DATA_SIZE; in build_aa_ext_struct()
99 TEST_BLOB_DATA, TEST_BLOB_DATA_SIZE); in build_aa_ext_struct()
192 KUNIT_ASSERT_EQ(test, size, TEST_BLOB_DATA_SIZE); in policy_unpack_test_unpack_blob_with_null_name()
194 memcmp(blob, TEST_BLOB_DATA, TEST_BLOB_DATA_SIZE) == 0); in policy_unpack_test_unpack_blob_with_null_name()
206 KUNIT_ASSERT_EQ(test, size, TEST_BLOB_DATA_SIZE); in policy_unpack_test_unpack_blob_with_name()
208 memcmp(blob, TEST_BLOB_DATA, TEST_BLOB_DATA_SIZE) == 0); in policy_unpack_test_unpack_blob_with_name()
221 + TEST_BLOB_DATA_SIZE - 1; in policy_unpack_test_unpack_blob_out_of_bounds()