Searched refs:syscall_lsms (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/lsm/ |
H A D | lsm_list_modules_test.c | 21 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() local 23 ASSERT_NE(NULL, syscall_lsms); in TEST() 25 ASSERT_EQ(-1, lsm_list_modules(syscall_lsms, NULL, 0)); in TEST() 28 free(syscall_lsms); in TEST() 45 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() local 48 ASSERT_NE(NULL, syscall_lsms); in TEST() 50 ASSERT_EQ(-1, lsm_list_modules(syscall_lsms, &size, 0)); in TEST() 54 free(syscall_lsms); in TEST() 60 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() local 63 ASSERT_NE(NULL, syscall_lsms); in TEST() [all …]
|
H A D | lsm_get_self_attr_test.c | 79 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() local 92 lsmcount = syscall(__NR_lsm_list_modules, syscall_lsms, &size, 0); in TEST() 94 ASSERT_NE(NULL, syscall_lsms); in TEST() 99 ctx->id = syscall_lsms[i]; in TEST() 101 if (syscall_lsms[i] == LSM_ID_SELINUX || in TEST() 102 syscall_lsms[i] == LSM_ID_SMACK || in TEST() 103 syscall_lsms[i] == LSM_ID_APPARMOR) { in TEST() 146 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() local 159 ASSERT_NE(NULL, syscall_lsms); in TEST() 161 lsmcount = syscall(__NR_lsm_list_modules, syscall_lsms, &size, 0); in TEST() [all …]
|