[RFC PATCH v3 04/13] rootns: Add rootns_create() system call

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


> Setting up an isolated namespace environment from a multithreaded
> manager process currently requires helper processes to call unshare()
> and pass file descriptors back over sockets.
> 
> Add the rootns_create() system call to allocate a detached rootns
> instance owning a fresh user namespace alongside dedicated empty mount
> (CLONE_EMPTY_MNTNS), PID, UTS, IPC, network, cgroup, and time
> namespaces, and return its control file descriptor. Finalize the nsproxy
> time namespace and pin active references for the lifetime of the rootns.
> 
> 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=4




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