Searched refs:root_prog (Results 1 – 3 of 3) sorted by relevance
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/ |
D | seccomp_bpf_tests.c | 1031 struct sock_fprog root_prog, apply_prog; 1050 memset(&self->root_prog, 0, sizeof(self->root_prog)); 1053 self->root_prog.filter = malloc(sizeof(root_filter)); 1054 ASSERT_NE(NULL, self->root_prog.filter); 1055 memcpy(self->root_prog.filter, &root_filter, sizeof(root_filter)); 1056 self->root_prog.len = (unsigned short)(sizeof(root_filter)/sizeof(root_filter[0])); 1073 self->sibling[0].prog = &self->root_prog; 1080 self->sibling[1].prog = &self->root_prog; 1091 if (self->root_prog.filter) 1092 free(self->root_prog.filter); [all …]
|
/external/seccomp-tests/linux/ |
D | seccomp_bpf.c | 1640 struct sock_fprog root_prog, apply_prog; in FIXTURE_DATA() local 1661 memset(&self->root_prog, 0, sizeof(self->root_prog)); in FIXTURE_SETUP() 1664 self->root_prog.filter = malloc(sizeof(root_filter)); in FIXTURE_SETUP() 1665 ASSERT_NE(NULL, self->root_prog.filter); in FIXTURE_SETUP() 1666 memcpy(self->root_prog.filter, &root_filter, sizeof(root_filter)); in FIXTURE_SETUP() 1667 self->root_prog.len = (unsigned short)ARRAY_SIZE(root_filter); in FIXTURE_SETUP() 1684 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP() 1691 self->sibling[1].prog = &self->root_prog; in FIXTURE_SETUP() 1700 if (self->root_prog.filter) in FIXTURE_TEARDOWN() 1701 free(self->root_prog.filter); in FIXTURE_TEARDOWN() [all …]
|
/external/linux-kselftest/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 2348 struct sock_fprog root_prog, apply_prog; in FIXTURE_DATA() local 2369 memset(&self->root_prog, 0, sizeof(self->root_prog)); in FIXTURE_SETUP() 2372 self->root_prog.filter = malloc(sizeof(root_filter)); in FIXTURE_SETUP() 2373 ASSERT_NE(NULL, self->root_prog.filter); in FIXTURE_SETUP() 2374 memcpy(self->root_prog.filter, &root_filter, sizeof(root_filter)); in FIXTURE_SETUP() 2375 self->root_prog.len = (unsigned short)ARRAY_SIZE(root_filter); in FIXTURE_SETUP() 2392 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP() 2399 self->sibling[1].prog = &self->root_prog; in FIXTURE_SETUP() 2408 if (self->root_prog.filter) in FIXTURE_TEARDOWN() 2409 free(self->root_prog.filter); in FIXTURE_TEARDOWN() [all …]
|