Home
last modified time | relevance | path

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

/cts/tests/tests/os/jni/seccomp-tests/tests/
Dseccomp_bpf_tests.c1393 struct sock_fprog root_prog, apply_prog; in FIXTURE_DATA() local
1412 memset(&self->root_prog, 0, sizeof(self->root_prog)); in FIXTURE_SETUP()
1415 self->root_prog.filter = malloc(sizeof(root_filter)); in FIXTURE_SETUP()
1416 ASSERT_NE(NULL, self->root_prog.filter); in FIXTURE_SETUP()
1417 memcpy(self->root_prog.filter, &root_filter, sizeof(root_filter)); in FIXTURE_SETUP()
1418 self->root_prog.len = (unsigned short)(sizeof(root_filter)/sizeof(root_filter[0])); in FIXTURE_SETUP()
1435 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP()
1442 self->sibling[1].prog = &self->root_prog; in FIXTURE_SETUP()
1449 if (self->root_prog.filter) in FIXTURE_TEARDOWN()
1450 free(self->root_prog.filter); in FIXTURE_TEARDOWN()
[all …]