Home
last modified time | relevance | path

Searched refs:PR_SET_SECCOMP (Results 1 – 25 of 26) sorted by relevance

12

/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c90 long ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST()
98 long ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST_SIGNAL()
102 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST_SIGNAL()
122 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST()
142 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
165 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
168 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, 0, 0); in TEST()
186 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
201 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
218 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
[all …]
Dsigsegv.c175 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
Dresumption.c202 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F()
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c106 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST()
117 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST_SIGNAL()
121 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL()
148 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST()
171 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
208 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
215 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
244 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
251 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
275 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c106 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST()
117 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST_SIGNAL()
121 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL()
148 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST()
171 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
208 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
215 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
244 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
251 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
275 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
[all …]
/external/strace/tests-m32/
Dprctl-seccomp-strict.c34 #if defined HAVE_PRCTL && defined PR_SET_SECCOMP && defined __NR_exit
46 int rc = prctl(PR_SET_SECCOMP, -1L, 1, 2, 3); in main()
51 rc = prctl(PR_SET_SECCOMP, 1); in main()
Dprctl-seccomp-filter-v.c49 && defined PR_SET_SECCOMP \
131 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) in main()
/external/strace/tests/
Dprctl-seccomp-strict.c34 #if defined HAVE_PRCTL && defined PR_SET_SECCOMP && defined __NR_exit
46 int rc = prctl(PR_SET_SECCOMP, -1L, 1, 2, 3); in main()
51 rc = prctl(PR_SET_SECCOMP, 1); in main()
Dprctl-seccomp-filter-v.c49 && defined PR_SET_SECCOMP \
131 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) in main()
/external/strace/tests-mx32/
Dprctl-seccomp-strict.c34 #if defined HAVE_PRCTL && defined PR_SET_SECCOMP && defined __NR_exit
46 int rc = prctl(PR_SET_SECCOMP, -1L, 1, 2, 3); in main()
51 rc = prctl(PR_SET_SECCOMP, 1); in main()
Dprctl-seccomp-filter-v.c49 && defined PR_SET_SECCOMP \
131 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) in main()
/external/libchrome/sandbox/linux/system_headers/
Dlinux_seccomp.h56 #ifndef PR_SET_SECCOMP
57 #define PR_SET_SECCOMP 22 macro
/external/strace/xlat/
Dprctl_options.h59 #if !(defined(PR_SET_SECCOMP) || (defined(HAVE_DECL_PR_SET_SECCOMP) && HAVE_DECL_PR_SET_SECCOMP))
60 # define PR_SET_SECCOMP 22 macro
171 XLAT(PR_SET_SECCOMP),
Dprctl_options.in20 PR_SET_SECCOMP 22
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsandbox_bpf.cc49 const int rv = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, nullptr); in KernelSupportsSeccompBPF()
271 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) { in InstallFilter()
/external/compiler-rt/test/asan/TestCases/Linux/
Dread_binary_name_regtest.c46 int res = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in main()
/external/libcap/libcap/include/uapi/linux/
Dprctl.h65 #define PR_SET_SECCOMP 22 macro
/external/kernel-headers/original/uapi/linux/
Dprctl.h67 #define PR_SET_SECCOMP 22 macro
/external/minijail/linux-x86/
Dlibconstants.gen.c956 #ifdef PR_SET_SECCOMP
957 { "PR_SET_SECCOMP", (unsigned long) PR_SET_SECCOMP },
/external/strace/
Dprctl.c287 case PR_SET_SECCOMP: in SYS_FUNC()
/external/openssh/
Dsandbox-seccomp-filter.c336 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &preauth_program) == -1) in ssh_sandbox_child()
Dconfigure.ac3139 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
Dconfigure13815 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
/external/minijail/
Dlibminijail.c768 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL) == -1) { in seccomp_should_parse_filters()
1591 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in set_seccomp_filter()
1776 if (j->flags.seccomp && prctl(PR_SET_SECCOMP, 1)) { in minijail_enter()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h615 #ifndef PR_SET_SECCOMP
616 #define PR_SET_SECCOMP 22 macro

12