Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771Ab0FSCuK (ORCPT ); Fri, 18 Jun 2010 22:50:10 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:60482 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165Ab0FSCuH (ORCPT ); Fri, 18 Jun 2010 22:50:07 -0400 To: Casey Schaufler Cc: Theodore Tso , Alan Cox , Kees Cook , Randy Dunlap , James Morris , linux-kernel@vger.kernel.org, Andrew Morton , Jiri Kosina , Dave Young , Martin Schwidefsky , Roland McGrath , Oleg Nesterov , "H. Peter Anvin" , David Howells , Ingo Molnar , Peter Zijlstra , linux-doc@vger.kernel.org, Stephen Smalley , Daniel J Walsh , linux-security-module@vger.kernel.org References: <20100616221833.GM24749@outflux.net> <20100617000120.13071be8@lxorguk.ukuu.org.uk> <20100616232230.GP24749@outflux.net> <20100617170453.GV24749@outflux.net> <20100617215349.2fac02f5@lxorguk.ukuu.org.uk> <20100617140630.c6ced27a.rdunlap@xenotime.net> <20100617221815.68ce30c5@lxorguk.ukuu.org.uk> <20100617215105.GB24749@outflux.net> <20100617233054.330256cf@lxorguk.ukuu.org.uk> <4C1AE3A8.2020104@schaufler-ca.com> <4C1C2A07.8020007@schaufler-ca.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Fri, 18 Jun 2010 19:49:48 -0700 In-Reply-To: <4C1C2A07.8020007@schaufler-ca.com> (Casey Schaufler's message of "Fri\, 18 Jun 2010 19\:23\:03 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in02.mta.xmission.com;;;ip=67.188.5.249;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 67.188.5.249 X-SA-Exim-Rcpt-To: casey@schaufler-ca.com, linux-security-module@vger.kernel.org, dwalsh@redhat.com, sds@tycho.nsa.gov, linux-doc@vger.kernel.org, a.p.zijlstra@chello.nl, mingo@elte.hu, dhowells@redhat.com, hpa@zytor.com, oleg@redhat.com, roland@redhat.com, schwidefsky@de.ibm.com, hidave.darkstar@gmail.com, jkosina@suse.cz, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, jmorris@namei.org, rdunlap@xenotime.net, kees.cook@canonical.com, alan@lxorguk.ukuu.org.uk, tytso@MIT.EDU X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Casey Schaufler X-Spam-Relay-Country: X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -3.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * 0.1 XMSolicitRefs_0 Weightloss drug * 0.0 XM_SPF_Neutral SPF-Neutral * 0.4 UNTRUSTED_Relay Comes from a non-trusted relay Subject: Re: [PATCH] ptrace: allow restriction of ptrace scope X-SA-Exim-Version: 4.2.1 (built Thu, 25 Oct 2007 00:26:12 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2445 Lines: 66 Casey Schaufler writes: > Eric W. Biederman wrote: >> Theodore Tso writes: >> >> >>> i think we really need to have stacked LSM's, > > ! > >>> because there is a large set >>> of people who will never use SELinux. Every few years, I take another >>> look at SELinux, my head explodes with the (IMHO unneeded complexity), >>> and I go away again... >>> >>> Yet I would really like a number of features such as this ptrace scope idea --- >>> which I think is a useful feature, and it may be that stacking is the only >>> way we can resolve this debate. The SELinux people will never believe that >>> their system is too complicated, and I don't like using things that are impossible >>> for me to understand or configure, and that doesn't seem likely to change anytime >>> in the near future. >>> >>> I mean, even IPSEC RFC's are easier for me to understand, and that's saying >>> a lot... >>> >> >> >> If anyone is going to work on this let me make a concrete suggestion. >> Let's aim at not stacked lsm's but chained lsm's, and put the chaining >> logic in the lsm core. >> > > It's 35 years since my data structures course. What's the important > difference between the two? Who takes responsibility for making it work, and where you implement it. If it is in the LSM it is a feature all LSMs automatically support it. If it is stacked it is an LSM by LSM feature. Basically implementing chaining is just a walk over a list of security_operations and calling the appropriate method on each one. Stacked LSMs at least as I saw it in selinux was the implementation of each security operation doing calling internally calling the secondary lsm's security options. Which seems to me to be more code, and harder to maintain, and a setup that encourages politics. >> The core difficulty appears to be how do you multiplex the security pointers >> on various objects out there. >> > > That and making sure that the hooks that maintain state get called > even if the decision to deny access has already been made by someone > else. Yep. Except for dealing with state maintenance it is absolutely trivial to implement chained LSMs. Eric -- 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/