Skip to content
Commit 1c4042c2 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

pidns: Consolidate initialzation of special init task state



Instead of setting child_reaper and SIGNAL_UNKILLABLE one way
for the system init process, and another way for pid namespace
init processes test pid->nr == 1 and use the same code for both.

For the global init this results in SIGNAL_UNKILLABLE being set
much earlier in the initialization process.

This is a small cleanup and it paves the way for allowing unshare and
enter of the pid namespace as that path like our global init also will
not set CLONE_NEWPID.

Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 57e8391d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment