lkml.org 
[lkml]   [2005]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[RFC][patch 21/21] PID Virtualization: pidspace parent : signal behavior
    make sure a process parent of a pidspace discards signals sent
    from processes in that pidspace.

    Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>

    --

    kernel/signal.c | 4 ++++
    1 files changed, 4 insertions(+)

    Index: linux-2.6.15-rc1/kernel/signal.c
    ===================================================================
    --- linux-2.6.15-rc1.orig/kernel/signal.c 2005-12-08 01:50:37.000000000 -0500
    +++ linux-2.6.15-rc1/kernel/signal.c 2005-12-08 01:50:37.000000000 -0500
    @@ -651,6 +651,10 @@ static int check_kill_permission(int sig
    if (!valid_signal(sig))
    return error;
    error = -EPERM;
    +
    + if (task_vpid_ctx(t, current) == 1)
    + return error;
    +
    if ((info == SEND_SIG_NOINFO || (!is_si_special(info) && SI_FROMUSER(info)))
    && ((sig != SIGCONT) ||
    (current->signal->session != t->signal->session))
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-12-15 15:44    [W:0.019 / U:91.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site