Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756696Ab0BBVZW (ORCPT ); Tue, 2 Feb 2010 16:25:22 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:33637 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756013Ab0BBVZQ (ORCPT ); Tue, 2 Feb 2010 16:25:16 -0500 Date: Tue, 2 Feb 2010 15:25:10 -0600 From: "Serge E. Hallyn" To: Kees Cook Cc: Casey Schaufler , linux-security-module@vger.kernel.org, James Morris , 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] syslog: distinguish between /proc/kmsg and syscalls Message-ID: <20100202212510.GG32305@us.ibm.com> References: <20100202055354.GV19355@outflux.net> <4B67C2EA.705@schaufler-ca.com> <20100202202054.GW19355@outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100202202054.GW19355@outflux.net> 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: 1386 Lines: 33 Quoting Kees Cook (kees.cook@canonical.com): > Hi, > > On Mon, Feb 01, 2010 at 10:15:06PM -0800, Casey Schaufler wrote: > > Might I suggest that you use a term other than "context" in this patch? > > I recognize that it is the proper word, but the term has significant and > > specific meaning in SELinux, and some of that has spilled over into the > > LSM in general. I expect that there might be confusion if it is used to > > denote something other than an SELinux "context". Perhaps "method", "type", > > or "scheme". > > Yeah, I cringed at "context" too, but since "type" is pretty overloaded > and it was already an argument there, I figured maybe it wouldn't be > too bad. > > > > -extern int cap_syslog(int type); > > > +extern int cap_syslog(int type, int context); > > Perhaps "source" or "origin"? "mode" is too overloaded with file modes. > Maybe a future patch can change "type" to "action" too. 'int from_file' or 'int from_sysc'? Really the special case is that if (from_file) then we take the file as a validated token allowing us to bypass new privilege checks, right? so 'from_file' seems appropriate to me. -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/