]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
csky: Add SECCOMP_FILTER supported
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 26 May 2020 08:11:52 +0000 (08:11 +0000)
committerGuo Ren <guoren@linux.alibaba.com>
Fri, 31 Jul 2020 01:51:05 +0000 (01:51 +0000)
commite95a4f8cb985e759648b32ed0b721a472deb86a5
tree9768d128f9b8c74d12bd1b3a5ab64420de1ca72a
parentc23dd2405fc2054345be33f8bb1d04b3b805202d
csky: Add SECCOMP_FILTER supported

secure_computing() is called first in syscall_trace_enter() so that
a system call will be aborted quickly without doing succeeding syscall
tracing if seccomp rules want to deny that system call.

TODO:
 - Update https://github.com/seccomp/libseccomp csky support

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/Kconfig
arch/csky/include/asm/Kbuild
arch/csky/include/asm/thread_info.h
arch/csky/kernel/entry.S
arch/csky/kernel/ptrace.c
tools/testing/selftests/seccomp/seccomp_bpf.c