Files
android_kernel_samsung_msm8…/include/asm-generic
Kees Cook da48ff2770 seccomp: add "seccomp" syscall
This adds the new "seccomp" syscall with both an "operation" and "flags"
parameter for future expansion. The third argument is a pointer value,
used with the SECCOMP_SET_MODE_FILTER operation. Currently, flags must
be 0. This is functionally equivalent to prctl(PR_SET_SECCOMP, ...).

In addition to the TSYNC flag later in this patch series, there is a
non-zero chance that this syscall could be used for configuring a fixed
argument area for seccomp-tracer-aware processes to pass syscall arguments
in the future. Hence, the use of "seccomp" not simply "seccomp_add_filter"
for this syscall. Additionally, this syscall uses operation, flags,
and user pointer for arguments because strictly passing arguments via
a user pointer would mean seccomp itself would be unable to trivially
filter the seccomp syscall itself.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Andy Lutomirski <luto@amacapital.net>

Conflicts:
	arch/x86/syscalls/syscall_32.tbl
	arch/x86/syscalls/syscall_64.tbl
	include/linux/syscalls.h
	include/uapi/asm-generic/unistd.h
	include/uapi/linux/seccomp.h
	kernel/seccomp.c
	kernel/sys_ni.c
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-05 14:22:38 +02:00
..
…
2012-03-28 18:30:03 +01:00
…
…
…
…
…
…
…
2011-03-17 09:19:04 +08:00
2013-06-14 13:34:03 -07:00
…
…
…
…
…
…
…
…
…
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
…
…
…
…
…
…
2012-02-23 20:18:56 -07:00
2012-02-23 20:19:04 -07:00
…
…
…
…
…
…
…
…
2019-08-05 14:22:31 +02:00
2011-03-17 09:19:04 +08:00
…
…
…
2019-08-05 14:21:59 +02:00
…
…
2019-08-05 14:20:47 +02:00
2012-01-03 22:55:17 -05:00
2011-10-06 19:47:12 -04:00
2019-08-05 14:22:38 +02:00
…
2011-05-20 12:50:29 -07:00