diff options
author | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> | 2008-10-29 22:01:11 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-30 19:38:46 +0100 |
commit | d25141a818383b3c3b09f065698c544a7a0ec6e7 (patch) | |
tree | fb2f868b42ccdde710ddf426e1c90f8ffcc83368 /kernel/rcupreempt.c | |
parent | fs: remove excess kernel-doc (diff) | |
download | linux-d25141a818383b3c3b09f065698c544a7a0ec6e7.tar.xz linux-d25141a818383b3c3b09f065698c544a7a0ec6e7.zip |
'kill sig -1' must only apply to caller's namespace
Currently "kill <sig> -1" kills processes in all namespaces and breaks the
isolation of namespaces. Earlier attempt to fix this was discussed at:
http://lkml.org/lkml/2008/7/23/148
As suggested by Oleg Nesterov in that thread, use "task_pid_vnr() > 1"
check since task_pid_vnr() returns 0 if process is outside the caller's
namespace.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Tested-by: Daniel Hokka Zakrisson <daniel@hozac.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rcupreempt.c')
0 files changed, 0 insertions, 0 deletions