Files
linux/kernel
Christian Brauner 24baca56fa clone: add CLONE_NNP
Add a new clone3() flag CLONE_NNP that sets no_new_privs on the child
process at clone time. This is analogous to prctl(PR_SET_NO_NEW_PRIVS)
but applied at process creation rather than requiring a separate step
after the child starts running.

CLONE_NNP is rejected with CLONE_THREAD. It's conceptually a lot simpler
if the whole thread-group is forced into NNP and not have single threads
running around with NNP.

Link: https://patch.msgid.link/20260226-work-pidfs-autoreap-v5-2-d148b984a989@kernel.org
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-03-11 23:15:15 +01:00
..
2026-03-11 23:15:15 +01:00
2026-01-05 16:43:34 +01:00
2025-11-11 10:01:31 +01:00
2026-03-11 23:14:02 +01:00
2026-01-22 11:11:20 +01:00
2026-03-11 23:14:02 +01:00
2025-10-29 10:29:54 +01:00
2026-01-26 19:07:13 -08:00