Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932294Ab0BDVbU (ORCPT ); Thu, 4 Feb 2010 16:31:20 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:49408 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755457Ab0BDVbR (ORCPT ); Thu, 4 Feb 2010 16:31:17 -0500 Date: Thu, 4 Feb 2010 15:31:06 -0600 From: "Serge E. Hallyn" To: James Morris Cc: Kees Cook , Alex Riesen , Casey Schaufler , linux-security-module@vger.kernel.org, Eric Paris , David Howells , Alexey Dobriyan , Ingo Molnar , Andrew Morton , Simon Kagstrom , David Woodhouse , Robin Getz , Greg Kroah-Hartman , Paul Moore , Tetsuo Handa , Stephen Smalley , Etienne Basset , "David P. Quigley" , LKLM Subject: Re: [PATCH v2 1/2] syslog: distinguish between /proc/kmsg and syscalls Message-ID: <20100204213106.GB25497@us.ibm.com> References: <20100202055354.GV19355@outflux.net> <4B67C2EA.705@schaufler-ca.com> <20100202202054.GW19355@outflux.net> <20100202212510.GG32305@us.ibm.com> <20100203233643.GI19355@outflux.net> <81b0412b1002032358j163d2e3fm2c0353ba3ec2842a@mail.gmail.com> <20100204080923.GL19355@outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1046 Lines: 30 Quoting James Morris (jmorris@namei.org): > On Thu, 4 Feb 2010, Kees Cook wrote: > > > Hi Alex, > > > > On Thu, Feb 04, 2010 at 08:58:43AM +0100, Alex Riesen wrote: > > > > + ? ? ? /* /proc/kmsg can open be opened by CAP_SYS_ADMIN */ > > > > + ? ? ? if (type != 1 && from_file) > > > > + ? ? ? ? ? ? ? return 0; > > > > > > "can open be opened"? > > > > Erk, sorry. s/open // > > > > James, do you want a patch for that? > > I guess... and 'opened with' might be better. I'd still as mentioned yesterday prefer "requires CAP_SYS_ADMIN to open" Otherwise, every time I see the comment I expect stricter requirements, not laxer ones, on the other actions. However, I think with the second patch switching 1 for a meaningful name, the comment isn't even necessary or noticable any more. -serge -- 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/