Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760569AbYBZMlQ (ORCPT ); Tue, 26 Feb 2008 07:41:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757640AbYBZMkf (ORCPT ); Tue, 26 Feb 2008 07:40:35 -0500 Received: from zombie.ncsc.mil ([144.51.88.131]:43879 "EHLO zombie.ncsc.mil" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbYBZMkY (ORCPT ); Tue, 26 Feb 2008 07:40:24 -0500 Subject: Re: SMACK or SELinux, but not both From: Stephen Smalley To: James Morris Cc: Alexey Dobriyan , linux-kernel@vger.kernel.org, eparis@parisplace.org, casey@schaufler-ca.com In-Reply-To: References: <20080226090953.GA7469@localhost.sw.ru> Content-Type: text/plain Organization: National Security Agency Date: Tue, 26 Feb 2008 07:39:36 -0500 Message-Id: <1204029576.2804.260.camel@moss-spartans.epoch.ncsc.mil> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1276 Lines: 35 On Tue, 2008-02-26 at 20:28 +1100, James Morris wrote: > On Tue, 26 Feb 2008, Alexey Dobriyan wrote: > > > If SELinux is registered before SMACK, SMACK panics after > > register_security() call. > > > > If SMACK is registered before SELinux, SELinux panics after > > register_security() call. > > > > Consequently allmodconfig kernel doesn't boot. It would be nice if > > some Kconfig magic to exclude each other will be in place. > > People want to be able to select the security model at boot time, so the > option to build both LSMs is required. > > You can stop SELinux from attempting to register as an LSM via selinux=0, > which should allow you to boot with just Smack enabled. Ideally, one could just boot with security= to select the desired primary security module. security=smack, security=selinux, or security=capability. Having to specify selinux=0 smack=0 foo=0 just to get bar wouldn't be pretty. Not that anyone would want to do that, of course... -- Stephen Smalley National Security Agency -- 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/