From a0470e9bd9742f9b024c9f2c58c003514d88fb69 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Tue, 3 Nov 2015 23:04:53 -0700 Subject: [PATCH] add seccomp syscall We'll use this when restoring eBPF programs in FILTER mode. Signed-off-by: Tycho Andersen Signed-off-by: Pavel Emelyanov --- arch/arm/syscall.def | 1 + arch/ppc64/syscall-ppc64.def | 1 + arch/x86/syscalls/syscall_32.tbl | 1 + arch/x86/syscalls/syscall_64.tbl | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm/syscall.def b/arch/arm/syscall.def index 13030f9b4..d6ea21d98 100644 --- a/arch/arm/syscall.def +++ b/arch/arm/syscall.def @@ -102,3 +102,4 @@ unlinkat 35 328 (int dirfd, const char *pathname, int flags) memfd_create 279 385 (const char *name, unsigned int flags) io_setup 0 243 (unsigned nr_events, aio_context_t *ctx) io_getevents 4 245 (aio_context_t ctx, long min_nr, long nr, struct io_event *evs, struct timespec *tmo) +seccomp 277 383 (unsigned int op, unsigned int flags, const char *uargs) diff --git a/arch/ppc64/syscall-ppc64.def b/arch/ppc64/syscall-ppc64.def index 60648373d..9e0472c15 100644 --- a/arch/ppc64/syscall-ppc64.def +++ b/arch/ppc64/syscall-ppc64.def @@ -96,6 +96,7 @@ __NR_prlimit64 325 sys_prlimit64 (pid_t pid, unsigned int resource, const str __NR_open_by_handle_at 346 sys_open_by_handle_at (int mountdirfd, struct file_handle *handle, int flags) __NR_setns 350 sys_setns (int fd, int nstype) __NR_kcmp 354 sys_kcmp (pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) +__NR_seccomp 358 sys_seccomp (unsigned int op, unsigned int flags, const char *uargs) __NR_memfd_create 360 sys_memfd_create (const char *name, unsigned int flags) __NR_io_setup 227 sys_io_setup (unsigned nr_events, aio_context_t *ctx_idp) __NR_io_getevents 229 sys_io_getevents (aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout) diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl index 904102fbb..22c632f0f 100644 --- a/arch/x86/syscalls/syscall_32.tbl +++ b/arch/x86/syscalls/syscall_32.tbl @@ -73,6 +73,7 @@ __NR_timer_gettime 261 sys_timer_gettime (int timer_id, struct itimerspec *sett __NR_timer_getoverrun 262 sys_timer_getoverrun (int timer_id) __NR_timer_delete 263 sys_timer_delete (timer_t timer_id) __NR_clock_gettime 265 sys_clock_gettime (int which_clock, struct timespec *tp) +__NR_seccomp 354 sys_seccomp (unsigned int op, unsigned int flags, const char *uargs) __NR_waitid 284 sys_waitid (int which, pid_t pid, struct siginfo *infop, int options, struct rusage *ru) __NR_set_robust_list 311 sys_set_robust_list (struct robust_list_head *head, size_t len) __NR_get_robust_list 312 sys_get_robust_list (int pid, struct robust_list_head **head_ptr, size_t *len_ptr) diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl index 59e5a6a08..bfc63bccc 100644 --- a/arch/x86/syscalls/syscall_64.tbl +++ b/arch/x86/syscalls/syscall_64.tbl @@ -87,6 +87,7 @@ __NR_openat 257 sys_openat (int dfd, const char *filename, int flags, int mo __NR_waitid 247 sys_waitid (int which, pid_t pid, struct siginfo *infop, int options, struct rusage *ru) __NR_set_robust_list 273 sys_set_robust_list (struct robust_list_head *head, size_t len) __NR_get_robust_list 274 sys_get_robust_list (int pid, struct robust_list_head **head_ptr, size_t *len_ptr) +__NR_seccomp 317 sys_seccomp (unsigned int op, unsigned int flags, const char *uargs) __NR_vmsplice 278 sys_vmsplice (int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags) __NR_timerfd_settime 286 sys_timerfd_settime (int ufd, int flags, const struct itimerspec *utmr, struct itimerspec *otmr) __NR_signalfd4 289 sys_signalfd (int fd, k_rtsigset_t *mask, size_t sizemask, int flags)