Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756752Ab0BDDyI (ORCPT ); Wed, 3 Feb 2010 22:54:08 -0500 Received: from tundra.namei.org ([65.99.196.166]:45594 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755253Ab0BDDyF (ORCPT ); Wed, 3 Feb 2010 22:54:05 -0500 Date: Thu, 4 Feb 2010 14:52:05 +1100 (EST) From: James Morris To: Kees Cook cc: "Serge E. Hallyn" , 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 In-Reply-To: <20100203233643.GI19355@outflux.net> Message-ID: References: <20100202055354.GV19355@outflux.net> <4B67C2EA.705@schaufler-ca.com> <20100202202054.GW19355@outflux.net> <20100202212510.GG32305@us.ibm.com> <20100203233643.GI19355@outflux.net> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 25 On Wed, 3 Feb 2010, Kees Cook wrote: > This allows the LSM to distinguish between syslog functions originating > from /proc/kmsg access and direct syscalls. By default, the commoncaps > will now no longer require CAP_SYS_ADMIN to read an opened /proc/kmsg > file descriptor. For example the kernel syslog reader can now drop > privileges after opening /proc/kmsg, instead of staying privileged with > CAP_SYS_ADMIN. MAC systems that implement security_syslog have unchanged > behavior. > > Signed-off-by: Kees Cook Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next -- James Morris -- 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/