Commit 83b290c
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>1 parent e2e8a14 commit 83b290c
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
2314 | | - | |
2315 | 2314 | | |
2316 | | - | |
| 2315 | + | |
2317 | 2316 | | |
2318 | 2317 | | |
2319 | 2318 | | |
| |||
2536 | 2535 | | |
2537 | 2536 | | |
2538 | 2537 | | |
| 2538 | + | |
| 2539 | + | |
2539 | 2540 | | |
2540 | | - | |
| 2541 | + | |
2541 | 2542 | | |
2542 | 2543 | | |
2543 | 2544 | | |
| |||
0 commit comments