]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
signal: support CLONE_PIDFD with pidfd_send_signal
authorChristian Brauner <christian@brauner.io>
Wed, 17 Apr 2019 20:50:25 +0000 (22:50 +0200)
committerChristian Brauner <christian@brauner.io>
Tue, 7 May 2019 12:31:03 +0000 (14:31 +0200)
commit2151ad1b067275730de1b38c7257478cae47d29e
tree45276131c61540bef60a8b9e6fde6b8b95401b54
parentb3e5838252665ee4cfa76b82bdf1198dca81e5be
signal: support CLONE_PIDFD with pidfd_send_signal

Let pidfd_send_signal() use pidfds retrieved via CLONE_PIDFD.  With this
patch pidfd_send_signal() becomes independent of procfs.  This fullfils
the request made when we merged the pidfd_send_signal() patchset.  The
pidfd_send_signal() syscall is now always available allowing for it to
be used by users without procfs mounted or even users without procfs
support compiled into the kernel.

Signed-off-by: Christian Brauner <christian@brauner.io>
Co-developed-by: Jann Horn <jannh@google.com>
Signed-off-by: Jann Horn <jannh@google.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: David Howells <dhowells@redhat.com>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.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>
kernel/signal.c
kernel/sys_ni.c