Commit 7615d9e1 authored by Christian Brauner's avatar Christian Brauner

arch: wire-up pidfd_open()

This wires up the pidfd_open() syscall into all arches at once.
Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jann Horn <jannh@google.com>
Cc: Andy Lutomirsky <luto@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-api@vger.kernel.org
Cc: linux-alpha@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-mips@vger.kernel.org
Cc: linux-parisc@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-s390@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: linux-xtensa@linux-xtensa.org
Cc: linux-arch@vger.kernel.org
Cc: x86@kernel.org
parent 32fcb426
...@@ -473,3 +473,4 @@ ...@@ -473,3 +473,4 @@
541 common fsconfig sys_fsconfig 541 common fsconfig sys_fsconfig
542 common fsmount sys_fsmount 542 common fsmount sys_fsmount
543 common fspick sys_fspick 543 common fspick sys_fspick
544 common pidfd_open sys_pidfd_open
...@@ -447,3 +447,4 @@ ...@@ -447,3 +447,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
#define __NR_compat_syscalls 434 #define __NR_compat_syscalls 435
#endif #endif
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
......
...@@ -886,6 +886,8 @@ __SYSCALL(__NR_fsconfig, sys_fsconfig) ...@@ -886,6 +886,8 @@ __SYSCALL(__NR_fsconfig, sys_fsconfig)
__SYSCALL(__NR_fsmount, sys_fsmount) __SYSCALL(__NR_fsmount, sys_fsmount)
#define __NR_fspick 433 #define __NR_fspick 433
__SYSCALL(__NR_fspick, sys_fspick) __SYSCALL(__NR_fspick, sys_fspick)
#define __NR_pidfd_open 434
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
/* /*
* Please add new compat syscalls above this comment and update * Please add new compat syscalls above this comment and update
......
...@@ -354,3 +354,4 @@ ...@@ -354,3 +354,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -433,3 +433,4 @@ ...@@ -433,3 +433,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -439,3 +439,4 @@ ...@@ -439,3 +439,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -372,3 +372,4 @@ ...@@ -372,3 +372,4 @@
431 n32 fsconfig sys_fsconfig 431 n32 fsconfig sys_fsconfig
432 n32 fsmount sys_fsmount 432 n32 fsmount sys_fsmount
433 n32 fspick sys_fspick 433 n32 fspick sys_fspick
434 n32 pidfd_open sys_pidfd_open
...@@ -348,3 +348,4 @@ ...@@ -348,3 +348,4 @@
431 n64 fsconfig sys_fsconfig 431 n64 fsconfig sys_fsconfig
432 n64 fsmount sys_fsmount 432 n64 fsmount sys_fsmount
433 n64 fspick sys_fspick 433 n64 fspick sys_fspick
434 n64 pidfd_open sys_pidfd_open
...@@ -421,3 +421,4 @@ ...@@ -421,3 +421,4 @@
431 o32 fsconfig sys_fsconfig 431 o32 fsconfig sys_fsconfig
432 o32 fsmount sys_fsmount 432 o32 fsmount sys_fsmount
433 o32 fspick sys_fspick 433 o32 fspick sys_fspick
434 o32 pidfd_open sys_pidfd_open
...@@ -430,3 +430,4 @@ ...@@ -430,3 +430,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -515,3 +515,4 @@ ...@@ -515,3 +515,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -436,3 +436,4 @@ ...@@ -436,3 +436,4 @@
431 common fsconfig sys_fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig sys_fsconfig
432 common fsmount sys_fsmount sys_fsmount 432 common fsmount sys_fsmount sys_fsmount
433 common fspick sys_fspick sys_fspick 433 common fspick sys_fspick sys_fspick
434 common pidfd_open sys_pidfd_open sys_pidfd_open
...@@ -436,3 +436,4 @@ ...@@ -436,3 +436,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -479,3 +479,4 @@ ...@@ -479,3 +479,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -438,3 +438,4 @@ ...@@ -438,3 +438,4 @@
431 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig 431 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig
432 i386 fsmount sys_fsmount __ia32_sys_fsmount 432 i386 fsmount sys_fsmount __ia32_sys_fsmount
433 i386 fspick sys_fspick __ia32_sys_fspick 433 i386 fspick sys_fspick __ia32_sys_fspick
434 i386 pidfd_open sys_pidfd_open __ia32_sys_pidfd_open
...@@ -355,6 +355,7 @@ ...@@ -355,6 +355,7 @@
431 common fsconfig __x64_sys_fsconfig 431 common fsconfig __x64_sys_fsconfig
432 common fsmount __x64_sys_fsmount 432 common fsmount __x64_sys_fsmount
433 common fspick __x64_sys_fspick 433 common fspick __x64_sys_fspick
434 common pidfd_open __x64_sys_pidfd_open
# #
# x32-specific system call numbers start at 512 to avoid cache impact # x32-specific system call numbers start at 512 to avoid cache impact
......
...@@ -404,3 +404,4 @@ ...@@ -404,3 +404,4 @@
431 common fsconfig sys_fsconfig 431 common fsconfig sys_fsconfig
432 common fsmount sys_fsmount 432 common fsmount sys_fsmount
433 common fspick sys_fspick 433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
...@@ -844,9 +844,11 @@ __SYSCALL(__NR_fsconfig, sys_fsconfig) ...@@ -844,9 +844,11 @@ __SYSCALL(__NR_fsconfig, sys_fsconfig)
__SYSCALL(__NR_fsmount, sys_fsmount) __SYSCALL(__NR_fsmount, sys_fsmount)
#define __NR_fspick 433 #define __NR_fspick 433
__SYSCALL(__NR_fspick, sys_fspick) __SYSCALL(__NR_fspick, sys_fspick)
#define __NR_pidfd_open 434
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
#undef __NR_syscalls #undef __NR_syscalls
#define __NR_syscalls 434 #define __NR_syscalls 435
/* /*
* 32 bit systems traditionally used different * 32 bit systems traditionally used different
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment