arm64: add seccomp support
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 28 Nov 2014 05:26:39 +0000 (05:26 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 28 Nov 2014 10:24:59 +0000 (10:24 +0000)
commita1ae65b219416a72c15577bd4c8c11174fffbb8b
tree653e0ac5fd6ffd3beb5dc78755a9f89602bc5b56
parentcc5e9097c9aad6b186a568c534e26746d6bfa483
arm64: add seccomp support

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.

On compat task, syscall numbers for system calls allowed in seccomp mode 1
are different from those on normal tasks, and so _NR_seccomp_xxx_32's need
to be redefined.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/seccomp.h [new file with mode: 0644]
arch/arm64/include/asm/unistd.h
arch/arm64/kernel/ptrace.c