Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760243Ab0FQW0V (ORCPT ); Thu, 17 Jun 2010 18:26:21 -0400 Received: from smtp.outflux.net ([198.145.64.163]:54532 "EHLO smtp.outflux.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752976Ab0FQW0S (ORCPT ); Thu, 17 Jun 2010 18:26:18 -0400 Date: Thu, 17 Jun 2010 15:25:04 -0700 From: Kees Cook To: Alan Cox Cc: 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 , "Eric W. Biederman" , linux-doc@vger.kernel.org, Stephen Smalley , Daniel J Walsh , linux-security-module@vger.kernel.org Subject: Re: [PATCH] ptrace: allow restriction of ptrace scope Message-ID: <20100617222504.GD24749@outflux.net> 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> <20100617211616.GA24749@outflux.net> <20100617231859.04fcdbde@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100617231859.04fcdbde@lxorguk.ukuu.org.uk> Organization: Canonical X-HELO: www.outflux.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 29 On Thu, Jun 17, 2010 at 11:18:59PM +0100, Alan Cox wrote: > > And for them, it certainly seems like a good idea to be able to turn off > > PTRACE without having to fiddle with an LSM. > > But that *is* an LSM, its a security policy. > > You don't seem to get it - even the default kernel security is a > security policy (security/commoncap.c etc) I do get it. I also get that every LSM calls out to commoncap, making it effectively stacked with the primary LSM -- the only LSM that gets stacked. In fact, this is how I even started implementing these features: as patches to commoncap, but James preferred it to be in core since they are of general utility. But core people want the changes in security/ instead. I don't mind putting them in commoncap at all. I would just like people to agree on what they disagree about. :) -Kees -- Kees Cook Ubuntu Security Team -- 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/