From: Serge E. Hallyn Date: Sat, 23 Feb 2008 23:23:33 +0000 (-0800) Subject: file capabilities: simplify signal check X-Git-Tag: v2.6.25-rc3~57 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094972840f2e7c1c6fc9e1a97d817cc17085378e;p=linux-2.6 file capabilities: simplify signal check Simplify the uid equivalence check in cap_task_kill(). Anyone can kill a process owned by the same uid. Without this patch wireshark is reported to fail. Signed-off-by: Serge E. Hallyn Signed-off-by: Andrew G. Morgan Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/commoncap.c b/security/commoncap.c index 5aba82679a..bb0c095f57 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -552,7 +552,7 @@ int cap_task_kill(struct task_struct *p, struct siginfo *info, * allowed. * We must preserve legacy signal behavior in this case. */ - if (p->euid == 0 && p->uid == current->uid) + if (p->uid == current->uid) return 0; /* sigcont is permitted within same session */