arch: wire up pidfd_getfd syscall
This wires up the pidfd_getfd syscall for all architectures. Signed-off-by: Sargun Dhillon <sargun@sargun.me> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20200107175927.4558-4-sargun@sargun.me Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Родитель
8649c322f7
Коммит
9a2cef09c8
|
@ -475,3 +475,4 @@
|
||||||
543 common fspick sys_fspick
|
543 common fspick sys_fspick
|
||||||
544 common pidfd_open sys_pidfd_open
|
544 common pidfd_open sys_pidfd_open
|
||||||
# 545 reserved for clone3
|
# 545 reserved for clone3
|
||||||
|
548 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -449,3 +449,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
435 common clone3 sys_clone3
|
435 common clone3 sys_clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -38,7 +38,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 436
|
#define __NR_compat_syscalls 439
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __ARCH_WANT_SYS_CLONE
|
#define __ARCH_WANT_SYS_CLONE
|
||||||
|
|
|
@ -879,6 +879,8 @@ __SYSCALL(__NR_fspick, sys_fspick)
|
||||||
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
|
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
|
||||||
#define __NR_clone3 435
|
#define __NR_clone3 435
|
||||||
__SYSCALL(__NR_clone3, sys_clone3)
|
__SYSCALL(__NR_clone3, sys_clone3)
|
||||||
|
#define __NR_pidfd_getfd 438
|
||||||
|
__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please add new compat syscalls above this comment and update
|
* Please add new compat syscalls above this comment and update
|
||||||
|
|
|
@ -356,3 +356,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
# 435 reserved for clone3
|
# 435 reserved for clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -435,3 +435,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
# 435 reserved for clone3
|
# 435 reserved for clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -441,3 +441,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
435 common clone3 sys_clone3
|
435 common clone3 sys_clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -374,3 +374,4 @@
|
||||||
433 n32 fspick sys_fspick
|
433 n32 fspick sys_fspick
|
||||||
434 n32 pidfd_open sys_pidfd_open
|
434 n32 pidfd_open sys_pidfd_open
|
||||||
435 n32 clone3 __sys_clone3
|
435 n32 clone3 __sys_clone3
|
||||||
|
438 n32 pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -350,3 +350,4 @@
|
||||||
433 n64 fspick sys_fspick
|
433 n64 fspick sys_fspick
|
||||||
434 n64 pidfd_open sys_pidfd_open
|
434 n64 pidfd_open sys_pidfd_open
|
||||||
435 n64 clone3 __sys_clone3
|
435 n64 clone3 __sys_clone3
|
||||||
|
438 n64 pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -423,3 +423,4 @@
|
||||||
433 o32 fspick sys_fspick
|
433 o32 fspick sys_fspick
|
||||||
434 o32 pidfd_open sys_pidfd_open
|
434 o32 pidfd_open sys_pidfd_open
|
||||||
435 o32 clone3 __sys_clone3
|
435 o32 clone3 __sys_clone3
|
||||||
|
438 o32 pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -433,3 +433,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
435 common clone3 sys_clone3_wrapper
|
435 common clone3 sys_clone3_wrapper
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -517,3 +517,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
435 nospu clone3 ppc_clone3
|
435 nospu clone3 ppc_clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -438,3 +438,4 @@
|
||||||
433 common fspick sys_fspick sys_fspick
|
433 common fspick sys_fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open sys_pidfd_open
|
||||||
435 common clone3 sys_clone3 sys_clone3
|
435 common clone3 sys_clone3 sys_clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -438,3 +438,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
# 435 reserved for clone3
|
# 435 reserved for clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -481,3 +481,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
# 435 reserved for clone3
|
# 435 reserved for clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -440,3 +440,4 @@
|
||||||
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
|
434 i386 pidfd_open sys_pidfd_open __ia32_sys_pidfd_open
|
||||||
435 i386 clone3 sys_clone3 __ia32_sys_clone3
|
435 i386 clone3 sys_clone3 __ia32_sys_clone3
|
||||||
|
438 i386 pidfd_getfd sys_pidfd_getfd __ia32_sys_pidfd_getfd
|
||||||
|
|
|
@ -357,6 +357,7 @@
|
||||||
433 common fspick __x64_sys_fspick
|
433 common fspick __x64_sys_fspick
|
||||||
434 common pidfd_open __x64_sys_pidfd_open
|
434 common pidfd_open __x64_sys_pidfd_open
|
||||||
435 common clone3 __x64_sys_clone3/ptregs
|
435 common clone3 __x64_sys_clone3/ptregs
|
||||||
|
438 common pidfd_getfd __x64_sys_pidfd_getfd
|
||||||
|
|
||||||
#
|
#
|
||||||
# x32-specific system call numbers start at 512 to avoid cache impact
|
# x32-specific system call numbers start at 512 to avoid cache impact
|
||||||
|
|
|
@ -406,3 +406,4 @@
|
||||||
433 common fspick sys_fspick
|
433 common fspick sys_fspick
|
||||||
434 common pidfd_open sys_pidfd_open
|
434 common pidfd_open sys_pidfd_open
|
||||||
435 common clone3 sys_clone3
|
435 common clone3 sys_clone3
|
||||||
|
438 common pidfd_getfd sys_pidfd_getfd
|
||||||
|
|
|
@ -1000,6 +1000,7 @@ asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags)
|
||||||
asmlinkage long sys_pidfd_send_signal(int pidfd, int sig,
|
asmlinkage long sys_pidfd_send_signal(int pidfd, int sig,
|
||||||
siginfo_t __user *info,
|
siginfo_t __user *info,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Architecture-specific system calls
|
* Architecture-specific system calls
|
||||||
|
|
|
@ -850,9 +850,11 @@ __SYSCALL(__NR_pidfd_open, sys_pidfd_open)
|
||||||
#define __NR_clone3 435
|
#define __NR_clone3 435
|
||||||
__SYSCALL(__NR_clone3, sys_clone3)
|
__SYSCALL(__NR_clone3, sys_clone3)
|
||||||
#endif
|
#endif
|
||||||
|
#define __NR_pidfd_getfd 438
|
||||||
|
__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
|
||||||
|
|
||||||
#undef __NR_syscalls
|
#undef __NR_syscalls
|
||||||
#define __NR_syscalls 436
|
#define __NR_syscalls 439
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 32 bit systems traditionally used different
|
* 32 bit systems traditionally used different
|
||||||
|
|
Загрузка…
Ссылка в новой задаче