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

/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
H A Dseccomp_bpf_tests.c1039 struct sock_fprog root_prog, apply_prog;
1059 memset(&self->apply_prog, 0, sizeof(self->apply_prog));
1066 self->apply_prog.filter = malloc(sizeof(apply_filter));
1067 ASSERT_NE(NULL, self->apply_prog.filter);
1068 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter));
1069 self->apply_prog.len = (unsigned short)(sizeof(apply_filter)/sizeof(apply_filter[0]));
1101 if (self->apply_prog.filter)
1102 free(self->apply_prog.filter);
1209 &self->apply_prog);
[all...]
/external/linux-kselftest/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c2194 struct sock_fprog root_prog, apply_prog; local
2216 memset(&self->apply_prog, 0, sizeof(self->apply_prog));
2223 self->apply_prog.filter = malloc(sizeof(apply_filter));
2224 ASSERT_NE(NULL, self->apply_prog.filter);
2225 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter));
2226 self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter);
2256 if (self->apply_prog.filter)
2257 free(self->apply_prog.filter);
2389 &self->apply_prog);
[all...]
/external/seccomp-tests/linux/
H A Dseccomp_bpf.c1640 struct sock_fprog root_prog, apply_prog; local
1662 memset(&self->apply_prog, 0, sizeof(self->apply_prog));
1669 self->apply_prog.filter = malloc(sizeof(apply_filter));
1670 ASSERT_NE(NULL, self->apply_prog.filter);
1671 memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter));
1672 self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter);
1702 if (self->apply_prog.filter)
1703 free(self->apply_prog.filter);
1837 &self->apply_prog);
[all...]

Completed in 344 milliseconds