mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
seccomp: revert previous patches in prep for updated ones
This reverts the seccomp related patches committed around 2014-08-27. This allows for a cleaner cherry-pick of newly landed upstream patches.f56b1aaarm: fixup NR_syscalls to accommodate the new seccomp syscall81ff7faseccomp: implement SECCOMP_FILTER_FLAG_TSYNCd924727seccomp: allow mode setting across threads743266aseccomp: introduce writer locking3497a88seccomp: split filter prep from check and apply 2c6d7de MIPS: add seccomp syscall83f1ccbaARM: add seccomp syscalla75a29bseccomp: add "seccomp" syscall1a63bceseccomp: split mode setting routinesc208e4eseccomp: extract check/assign mode helpers6862b01seccomp: create internal mode-setting function1ba2ccbMAINTAINERS: create seccomp entry c2da3eb seccomp: fix memory leak on filter attach945a225ARM: 7888/1: seccomp: not compatible with ARM OABI Change-Id: I3f129263d68a7b3c206d79f84f7f9908d13064f6 Signed-off-by: JP Abgrall <jpa@google.com>
This commit is contained in:
@@ -692,19 +692,9 @@ __SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
|
||||
__SYSCALL(__NR_kcmp, sys_kcmp)
|
||||
#define __NR_finit_module 273
|
||||
__SYSCALL(__NR_finit_module, sys_finit_module)
|
||||
/* Backporting seccomp, skip a few ...
|
||||
* #define __NR_sched_setattr 274
|
||||
__SYSCALL(__NR_sched_setattr, sys_sched_setattr)
|
||||
* #define __NR_sched_getattr 275
|
||||
__SYSCALL(__NR_sched_getattr, sys_sched_getattr)
|
||||
* #define __NR_renameat2 276
|
||||
__SYSCALL(__NR_renameat2, sys_renameat2)
|
||||
*/
|
||||
#define __NR_seccomp 277
|
||||
__SYSCALL(__NR_seccomp, sys_seccomp)
|
||||
|
||||
#undef __NR_syscalls
|
||||
#define __NR_syscalls 278
|
||||
#define __NR_syscalls 274
|
||||
|
||||
/*
|
||||
* All syscalls below here should go away really,
|
||||
|
||||
@@ -10,13 +10,6 @@
|
||||
#define SECCOMP_MODE_STRICT 1 /* uses hard-coded filter. */
|
||||
#define SECCOMP_MODE_FILTER 2 /* uses user-supplied filter. */
|
||||
|
||||
/* Valid operations for seccomp syscall. */
|
||||
#define SECCOMP_SET_MODE_STRICT 0
|
||||
#define SECCOMP_SET_MODE_FILTER 1
|
||||
|
||||
/* Valid flags for SECCOMP_SET_MODE_FILTER */
|
||||
#define SECCOMP_FILTER_FLAG_TSYNC 1
|
||||
|
||||
/*
|
||||
* All BPF programs must return a 32-bit value.
|
||||
* The bottom 16-bits are for optional return data.
|
||||
|
||||
Reference in New Issue
Block a user