Home
last modified time | relevance | path

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

/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c1031 struct sock_fprog root_prog, apply_prog;
1051 memset(&self->apply_prog, 0, sizeof(self->apply_prog));
1058 self->apply_prog.filter = malloc(sizeof(apply_filter));
1059 ASSERT_NE(NULL, self->apply_prog.filter);
1060 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter));
1061 self->apply_prog.len = (unsigned short)(sizeof(apply_filter)/sizeof(apply_filter[0]));
1093 if (self->apply_prog.filter)
1094 free(self->apply_prog.filter);
1201 &self->apply_prog);
1234 &self->apply_prog);
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c1640 struct sock_fprog root_prog, apply_prog; in FIXTURE_DATA() local
1662 memset(&self->apply_prog, 0, sizeof(self->apply_prog)); in FIXTURE_SETUP()
1669 self->apply_prog.filter = malloc(sizeof(apply_filter)); in FIXTURE_SETUP()
1670 ASSERT_NE(NULL, self->apply_prog.filter); in FIXTURE_SETUP()
1671 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter)); in FIXTURE_SETUP()
1672 self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter); in FIXTURE_SETUP()
1702 if (self->apply_prog.filter) in FIXTURE_TEARDOWN()
1703 free(self->apply_prog.filter); in FIXTURE_TEARDOWN()
1837 &self->apply_prog); in TEST_F()
1900 &self->apply_prog); in TEST_F()
[all …]
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c2217 struct sock_fprog root_prog, apply_prog; in FIXTURE_DATA() local
2239 memset(&self->apply_prog, 0, sizeof(self->apply_prog)); in FIXTURE_SETUP()
2246 self->apply_prog.filter = malloc(sizeof(apply_filter)); in FIXTURE_SETUP()
2247 ASSERT_NE(NULL, self->apply_prog.filter); in FIXTURE_SETUP()
2248 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter)); in FIXTURE_SETUP()
2249 self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter); in FIXTURE_SETUP()
2279 if (self->apply_prog.filter) in FIXTURE_TEARDOWN()
2280 free(self->apply_prog.filter); in FIXTURE_TEARDOWN()
2412 &self->apply_prog); in TEST_F()
2473 &self->apply_prog); in TEST_F()
[all …]