From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753937AbXLLWyR (ORCPT ); Wed, 12 Dec 2007 17:54:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751174AbXLLWyE (ORCPT ); Wed, 12 Dec 2007 17:54:04 -0500 Received: from mx1.redhat.com ([66.187.233.31]:45982 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbXLLWyB (ORCPT ); Wed, 12 Dec 2007 17:54:01 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <573241.88686.qm@web36613.mail.mud.yahoo.com> References: <573241.88686.qm@web36613.mail.mud.yahoo.com> To: casey@schaufler-ca.com Cc: dhowells@redhat.com, Stephen Smalley , Karl MacMillan , viro@ftp.linux.org.uk, hch@infradead.org, Trond.Myklebust@netapp.com, linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org Subject: Re: [PATCH 08/28] SECURITY: Allow kernel services to override LSM settings for task actions [try #2] X-Mailer: MH-E 8.0.3+cvs; nmh 1.2-20070115cvs; GNU Emacs 23.0.50 Date: Wed, 12 Dec 2007 22:52:46 +0000 Message-ID: <698.1197499966@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Casey Schaufler wrote: > It would seem to me that security_secctx_to_secid() ought to suffice if the > application code was written correctly. That's not quite sufficient as there still needs to be a verification step to make sure the caller is allowed to do this. > Be aware that factors outside the LSM may be important, too. As Stephen > points out elsewhere, Smack will require you have particular capabilities > (CAP_MAC_OVERRIDE, CAP_MAC_ADMIN) while a DAC LSM may require > CAP_DAC_OVERRIDE. For what? David