]> git.baikalelectronics.ru Git - kernel.git/commit
pid_ns: zap_pid_ns_processes: use SEND_SIG_NOINFO instead of force_sig()
authorOleg Nesterov <oleg@redhat.com>
Wed, 10 Mar 2010 23:23:09 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:40 +0000 (15:52 -0800)
commit7fbfe1cd99d3a25432f4badb3dbbebc570882eeb
treecf6e3d79a3defc5a291575aa26a5405d9815a5a5
parent556264ca8ea0e7c1cebbee8cd95ff764727c723b
pid_ns: zap_pid_ns_processes: use SEND_SIG_NOINFO instead of force_sig()

zap_pid_ns_processes() uses force_sig(SIGKILL) to ensure SIGKILL will be
delivered to sub-namespace inits as well.  This is correct, but we are
going to change force_sig_info() semantics.  See
http://bugzilla.kernel.org/show_bug.cgi?id=15395#c31

We can use send_sig_info(SEND_SIG_NOINFO) instead, since
655b14c25f7f5d46ab5c9cbcf5eee207531356f0 ("signals: SEND_SIG_NOINFO should
be considered as SI_FROMUSER()") SEND_SIG_NOINFO means "from user" and
therefore send_signal() will get the correct from_ancestor_ns = T flag.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/pid_namespace.c