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

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 18 05:09:42 UTC 2026


> Linux namespaces can be created and entered individually, but userspace
> orchestrators lack a single kernel object that binds a namespace set, a
> root mount, and an init process behind a pollable file descriptor.
> 
> Add struct rootns, its lifecycle states, reference counting, uAPI
> creation flags, 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, and report EPOLLHUP from poll() once the
> rootns reaches ROOTNS_DEAD.
> 
> 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/20261117050841.3289652-1-jarkko@kernel.org?part=2




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