summaryrefslogtreecommitdiff
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2024-02-05 15:55:32 +0100
committerChristian Brauner <brauner@kernel.org>2024-02-06 14:39:32 +0100
commit83b290c9e3b5d95891f43a4aeadf6071cbff25d3 (patch)
tree72aa83a6564a6969f44e47850230894007ffbee4 /kernel/pid.c
parente2e8a142fbd988d658ccb3da1d6f4b26a39de0fd (diff)
pidfd: clone: allow CLONE_THREAD | CLONE_PIDFD together
copy_process() just needs to pass PIDFD_THREAD to __pidfd_prepare() if clone_flags & CLONE_THREAD. We can also add another CLONE_ flag (or perhaps reuse CLONE_DETACHED) to enforce PIDFD_THREAD without CLONE_THREAD. Originally-from: Tycho Andersen <tycho@tycho.pizza> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20240205145532.GA28823@redhat.com Reviewed-by: Tycho Andersen <tandersen@netflix.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions