Searched defs:seccomp (Results 1 - 2 of 2) sorted by relevance

/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
H A Dseccomp_bpf_tests.c6 * Test code for seccomp bpf.
21 #include <linux/seccomp.h>
802 /* Make sure this is a seccomp event. */
936 #ifndef seccomp
937 int seccomp(unsigned int op, unsigned int flags, struct sock_fprog *filter) function
963 ret = seccomp(-1, 0, &prog);
969 ret = seccomp(SECCOMP_SET_MODE_STRICT, -1, NULL);
973 ret = seccomp(SECCOMP_SET_MODE_STRICT, 0, &prog);
979 ret = seccomp(SECCOMP_SET_MODE_FILTER, -1, &prog);
983 ret = seccomp(SECCOMP_SET_MODE_FILTE
[all...]
/external/minijail/
H A Dlibminijail.c103 int seccomp:1; member in struct:minijail::__anon14793
144 * or are easier to set after execve(2) (e.g. seccomp filters).
192 /* Allow seccomp soft-fail on Android devices with kernel version < 3.8. */
325 j->flags.seccomp = 1;
611 warn("not loading seccomp filter,"
612 " seccomp not supported");
622 pdie("failed to open seccomp filter file '%s'", path);
627 die("failed to compile seccomp filter BPF program in '%s'",
1266 * Set no_new_privs. See </kernel/seccomp.c> and </kernel/sys.c>
1278 * which will likely crash the program. Skip setting seccomp filte
[all...]

Completed in 153 milliseconds