Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763287AbYCUXuB (ORCPT ); Fri, 21 Mar 2008 19:50:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758577AbYCUXp7 (ORCPT ); Fri, 21 Mar 2008 19:45:59 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:60211 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758454AbYCUXp6 (ORCPT ); Fri, 21 Mar 2008 19:45:58 -0400 Message-Id: <20080321224401.569557855@sous-sol.org> References: <20080321224250.144333319@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 21 Mar 2008 15:43:24 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, jejb@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, "Serge E. Hallyn" , Andrew G Morgan , Greg Kroah-Hartman Subject: [patch 34/76] file capabilities: simplify signal check Content-Disposition: inline; filename=file-capabilities-simplify-signal-check.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 38 -stable review patch. If anyone has any objections, please let us know. --------------------- From: Serge E. Hallyn 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- security/commoncap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/security/commoncap.c +++ b/security/commoncap.c @@ -539,7 +539,7 @@ int cap_task_kill(struct task_struct *p, * 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 */ -- -- 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/