Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c2541 struct sock_fprog root_prog, apply_prog; in FIXTURE() local
2563 memset(&self->apply_prog, 0, sizeof(self->apply_prog)); in FIXTURE_SETUP()
2570 self->apply_prog.filter = malloc(sizeof(apply_filter)); in FIXTURE_SETUP()
2571 ASSERT_NE(NULL, self->apply_prog.filter); in FIXTURE_SETUP()
2572 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter)); in FIXTURE_SETUP()
2573 self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter); in FIXTURE_SETUP()
2603 if (self->apply_prog.filter) in FIXTURE_TEARDOWN()
2604 free(self->apply_prog.filter); in FIXTURE_TEARDOWN()
2736 &self->apply_prog); in TEST_F()
2797 &self->apply_prog); in TEST_F()
[all …]