[RFC PATCH 05/13] rootns: Add rootns_wait() system call
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 18 05:09:47 UTC 2026
> wait4() and waitid() only allow a parent or subreaper to collect exit
> status, so an external manager holding a rootns file descriptor cannot
> wait on a rootns init process forked by another process or observe exit
> status multiple times across observers.
>
> Add the rootns_wait() system call and its compat entry point to wait on
> a rootns file descriptor until its init thread group exits and report
> the recorded wait status and rusage. Return the init TGID translated
> into the caller's active PID namespace, 0 for WNOHANG while still
> running, or -ECHILD when the PID is not visible to the caller.
>
> 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=5
More information about the Linux-security-module-archive
mailing list