Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c87 #ifndef SECCOMP_MODE_FILTER
88 #define SECCOMP_MODE_FILTER 2 macro
344 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL()
546 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
563 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
583 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
604 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
626 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
647 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
670 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
[all …]
A Dseccomp_benchmark.c171 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog); in main()
178 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog); in main()
185 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in main()
192 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog); in main()
/linux/include/uapi/linux/
A Dseccomp.h12 #define SECCOMP_MODE_FILTER 2 /* uses user-supplied filter. */ macro
/linux/samples/seccomp/
A Dbpf-fancy.c93 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) { in main()
A Dbpf-direct.c156 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) { in install_filter()
/linux/kernel/
A Dseccomp.c497 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
623 seccomp_assign_mode(thread, SECCOMP_MODE_FILTER, in seccomp_sync_threads()
1310 case SECCOMP_MODE_FILTER: in __secure_computing()
1801 const unsigned long seccomp_mode = SECCOMP_MODE_FILTER; in seccomp_set_mode_filter()
1988 case SECCOMP_MODE_FILTER: in prctl_set_seccomp()
2013 if (task->seccomp.mode != SECCOMP_MODE_FILTER) { in get_nth_filter()
/linux/Documentation/userspace-api/
A Dseccomp_filter.rst61 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, prog);

Completed in 18 milliseconds