Commit:     0fbc26a6cfab9f377e82e28225f2c0c6b4661e5c
Parent:     c9c5d92211883e9ae22394d1f157ab0d3a7ec895
Author:     Sukadev Bhattiprolu <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 18 23:40:13 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Oct 19 11:53:40 2007 -0700

    pid namespaces: allow signalling cgroup-init
    Only the global-init process must be special - any other cgroup-init
    process must be killable to prevent run-away processes in the system.
    TODO:       Ideally we should allow killing the cgroup-init only from parent
        cgroup and prevent it being killed from within the cgroup.
        But that is a more complex change and will be addressed by a follow-on
        patch. For now allow the cgroup-init to be terminated by any process
        with sufficient privileges.
    Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]>
    Acked-by: Pavel Emelyanov <[EMAIL PROTECTED]>
    Cc: Oleg Nesterov <[EMAIL PROTECTED]>
    Cc: Sukadev Bhattiprolu <[EMAIL PROTECTED]>
    Cc: Paul Menage <[EMAIL PROTECTED]>
    Cc: "Eric W. Biederman" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/signal.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index 8214ffa..9892388 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1835,11 +1835,9 @@ relock:
-                * Init of a pid space gets no signals it doesn't want from
-                * within that pid space. It can of course get signals from
-                * its parent pid space.
+                * Global init gets no signals it doesn't want.
-               if (current == task_child_reaper(current))
+               if (is_global_init(current))
                if (sig_kernel_stop(signr)) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to