[PATCH 26/26] pidns: Ensure zap_pid_ns_processes always terminates

2017-06-06 Thread Eric W. Biederman
The function zap_pid_processes terminates when the number of pids used by processes in a pid namespace drops to just those pids used by the last thread of the dying thread. Don't allow an init process aka a child_reaper to call setpgid(0, some_other_processes_pid). That case is already broken

[PATCH 26/26] pidns: Ensure zap_pid_ns_processes always terminates

2017-06-06 Thread Eric W. Biederman
The function zap_pid_processes terminates when the number of pids used by processes in a pid namespace drops to just those pids used by the last thread of the dying thread. Don't allow an init process aka a child_reaper to call setpgid(0, some_other_processes_pid). That case is already broken