# Re: \[RFC PATCH v3 03/13\] rootns: Track init lifecycle via copy\_process() and pid\_namespace

- From: sashiko-bot@kernel.org
- Date: 2026-11-19 19:36:50 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17987236
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17968274/t.md

```text
> A root namespace needs to record its init thread group's PID when
> bootstrapped and capture its exit status and resource usage once all
> processes in the root namespace have terminated, without serializing
> normal fork() and exit() paths inside the container.
> 
> Commit the bootstrap child reaper, bind pid_ns->rootns, and wake waiters
> in copy_rootns() after attach_pid(PIDTYPE_PID), and invoke exit_rootns()
> from zap_pid_ns_processes() after the root namespace's PID namespace has
> killed and reaped all member tasks.
> 
> Co-developed-by: David Howells <dhowells@redhat.com>
> Signed-off-by: David Howells <dhowells@redhat.com>
> Signed-off-by: Jarkko Sakkinen <jarkko@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=3

```
