[RFC PATCH v4 03/14] rootns: Track init lifecycle via copy_process() and pid_namespace

Jarkko Sakkinen jarkko at kernel.org
Fri Nov 20 13:30:17 UTC 2026


On Fri, Nov 20, 2026 at 02:18:43PM +0100, Alexander Mikhalitsyn wrote:
> Dear Jarkko,
> 
> >  	acct_exit_ns(pid_ns);
> > +	exit_rootns(pid_ns, me);
> 
> We have a very similar mechanism around pidfd's to track exit
> information for a task. As far as I can see we already have (struct
> rootns *)->init_pid reference, so we can get exit information for free
> (look for PIDFD_INFO_EXIT).

Thanks for mentioning. I'll see if I can leverage it.

If something like this is found, it is partly due long history of this
code i.e., not planned/opionated choice :-) 

> 
> Kind regards,
> Alex

Br, Jarkko



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