summaryrefslogtreecommitdiffstats
path: root/security/yama/yama_lsm.c
diff options
context:
space:
mode:
authorEric W. Biederman2013-03-26 10:27:11 +0100
committerEric W. Biederman2013-03-26 11:41:23 +0100
commit751c644b95bb48aaa8825f0c66abbcc184d92051 (patch)
treeac5fa98b0281b5c8db1ac5859d15ac5c2b22e5f4 /security/yama/yama_lsm.c
parentscm: Require CAP_SYS_ADMIN over the current pidns to spoof pids. (diff)
downloadkernel-qcow2-linux-751c644b95bb48aaa8825f0c66abbcc184d92051.tar.gz
kernel-qcow2-linux-751c644b95bb48aaa8825f0c66abbcc184d92051.tar.xz
kernel-qcow2-linux-751c644b95bb48aaa8825f0c66abbcc184d92051.zip
pid: Handle the exit of a multi-threaded init.
When a multi-threaded init exits and the initial thread is not the last thread to exit the initial thread hangs around as a zombie until the last thread exits. In that case zap_pid_ns_processes needs to wait until there are only 2 hashed pids in the pid namespace not one. v2. Replace thread_pid_vnr(me) == 1 with the test thread_group_leader(me) as suggested by Oleg. Cc: stable@vger.kernel.org Cc: Oleg Nesterov <oleg@redhat.com> Reported-by: Caj Larsson <caj@omnicloud.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'security/yama/yama_lsm.c')
0 files changed, 0 insertions, 0 deletions