mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ARM: add seccomp syscall
Wires up the new seccomp syscall. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Git-commit: a9ba4285aa5722a3b4d84888e78ba8adc0046b28 Git-repo: https://android.googlesource.com/kernel/common.git [imaund@codeaurora.org: Resolved conflicts caused by sched_setattr and sched_getattr already being defined in our baseline] Signed-off-by: Ian Maund <imaund@codeaurora.org>
This commit is contained in:
parent
51aeab2e10
commit
6a8bb76f8e
2 changed files with 7 additions and 0 deletions
|
@ -408,6 +408,10 @@
|
|||
#define __NR_finit_module (__NR_SYSCALL_BASE+379)
|
||||
#define __NR_sched_setattr (__NR_SYSCALL_BASE+380)
|
||||
#define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
|
||||
/* Reserve for later
|
||||
#define __NR_renameat2 (__NR_SYSCALL_BASE+382)
|
||||
*/
|
||||
#define __NR_seccomp (__NR_SYSCALL_BASE+383)
|
||||
|
||||
/*
|
||||
* This may need to be greater than __NR_last_syscall+1 in order to
|
||||
|
|
|
@ -391,6 +391,9 @@
|
|||
CALL(sys_finit_module)
|
||||
/* 380 */ CALL(sys_sched_setattr)
|
||||
CALL(sys_sched_getattr)
|
||||
CALL(sys_ni_syscall) /* reserved sys_renameat2 */
|
||||
CALL(sys_seccomp)
|
||||
|
||||
#ifndef syscalls_counted
|
||||
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
|
||||
#define syscalls_counted
|
||||
|
|
Loading…
Reference in a new issue