[Devel] [PATCH] Use task_session() in signal.c

sukadev at us.ibm.com sukadev at us.ibm.com
Thu Feb 22 15:34:40 PST 2007


From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Subject: [PATCH] Use task_session() in signal.c

Replace process_session(tsk) with the container-friendly interface,
task_session(tsk)

Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Dave Hansen <haveblue at us.ibm.com>
Cc: Serge Hallyn <serue at us.ibm.com>
Cc: containers at lists.osdl.org

---
 kernel/signal.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: lx26-20-mm1/kernel/signal.c
===================================================================
--- lx26-20-mm1.orig/kernel/signal.c	2007-02-16 14:32:57.000000000 -0800
+++ lx26-20-mm1/kernel/signal.c	2007-02-16 15:46:04.000000000 -0800
@@ -609,8 +609,7 @@ static int check_kill_permission(int sig
 		return error;
 	error = -EPERM;
 	if ((info == SEND_SIG_NOINFO || (!is_si_special(info) && SI_FROMUSER(info)))
-	    && ((sig != SIGCONT) ||
-		(process_session(current) != process_session(t)))
+	    && ((sig != SIGCONT) || (task_session(current) != task_session(t)))
 	    && (current->euid ^ t->suid) && (current->euid ^ t->uid)
 	    && (current->uid ^ t->suid) && (current->uid ^ t->uid)
 	    && !capable(CAP_KILL))
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers




More information about the Devel mailing list