• Christian Brauner's avatar
    signal: support CLONE_PIDFD with pidfd_send_signal · 2151ad1b
    Christian Brauner authored
    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: default avatarChristian Brauner <christian@brauner.io>
    Co-developed-by: default avatarJann Horn <jannh@google.com>
    Signed-off-by: default avatarJann Horn <jannh@google.com>
    Acked-by: default avatarOleg 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>
    2151ad1b
signal.c 114 KB