From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759911AbZBYTsp (ORCPT ); Wed, 25 Feb 2009 14:48:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757584AbZBYTsh (ORCPT ); Wed, 25 Feb 2009 14:48:37 -0500 Received: from mx2.redhat.com ([66.187.237.31]:53123 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757023AbZBYTsh (ORCPT ); Wed, 25 Feb 2009 14:48:37 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Oleg Nesterov X-Fcc: ~/Mail/linus Cc: Andrew Morton , Linus Torvalds , Alan Cox , Chris Evans , David Howells , Don Howard , Eugene Teo , Michael Kerrisk , Tavis Ormandy , Vitaly Mayatskikh , stable@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] exit_notify: kill the wrong capable(CAP_KILL) check In-Reply-To: Oleg Nesterov's message of Wednesday, 25 February 2009 20:02:18 +0100 <20090225190218.GA7453@redhat.com> References: <20090225190218.GA7453@redhat.com> X-Windows: form follows malfunction. Message-Id: <20090225194140.D6F6EFC3DA@magilla.sf.frob.com> Date: Wed, 25 Feb 2009 11:41:40 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I can't understand why exit_notify() checks capable(CAP_KILL), but this > looks just wrong. I don't know either why it's there. My guess is that it was not actually thought out specifically, just a "unless capable" exception added when the security-motivated exclusions (exec_id stuff) were added. I can't think of any reason not to drop this check. Thanks, Roland