ARM: add seccomp syscall
authorKees Cook <keescook@chromium.org>
Tue, 10 Jun 2014 22:40:23 +0000 (15:40 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 18 Jul 2014 19:13:38 +0000 (12:13 -0700)
Wires up the new seccomp syscall.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
arch/arm/include/uapi/asm/unistd.h
arch/arm/kernel/calls.S

index ba94446c72d9127633de59545a3691390ecdfc5d..e21b4a069701345c3663add69307ca161e41399c 100644 (file)
 #define __NR_sched_setattr             (__NR_SYSCALL_BASE+380)
 #define __NR_sched_getattr             (__NR_SYSCALL_BASE+381)
 #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
index 8f51bdcdacbbf6675933f38fb595adbdc825f4c2..bea85f97f3633b48eb307a154910b563f40187c6 100644 (file)
 /* 380 */      CALL(sys_sched_setattr)
                CALL(sys_sched_getattr)
                CALL(sys_renameat2)
+               CALL(sys_seccomp)
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted