[RFC PATCH v3 02/13] rootns: Add core infrastructure for root namespaces

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 19 19:36:48 UTC 2026


> Linux namespaces can be created and entered individually, but userspace
> orchestrators lack a single kernel object that binds a full detached
> namespace set and an init process behind a pollable file descriptor.
> 
> Add struct rootns, its lifecycle states, reference counting, uAPI
> creation flags, ROOTNS_GET_NSFD ioctl, and anonymous inode file
> operations under CONFIG_ROOTNS. Drop active and passive namespace
> references on final release, send SIGKILL to the rootns init thread
> group on close when ROOTNS_KILL_ON_CLOSE is set, report EPOLLHUP from
> poll() once the rootns reaches ROOTNS_DEAD, and allow holders with
> CAP_SYS_ADMIN in the rootns user namespace to open member nsfs fds.
> 
> Co-developed-by: David Howells <dhowells at redhat.com>
> Signed-off-by: David Howells <dhowells at redhat.com>
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261118193539.240065-1-jarkko@kernel.org?part=2




More information about the Linux-security-module-archive mailing list