|From:||James Morris <jmorris-AT-namei.org>|
|To:||Kees Cook <kees.cook-AT-canonical.com>|
|Subject:||Re: [PATCH] ptrace: allow restriction of ptrace scope|
|Date:||Thu, 17 Jun 2010 23:45:42 +1000 (EST)|
|Cc:||Alan Cox <alan-AT-lxorguk.ukuu.org.uk>, linux-kernel-AT-vger.kernel.org, Randy Dunlap <rdunlap-AT-xenotime.net>, Andrew Morton <akpm-AT-linux-foundation.org>, Jiri Kosina <jkosina-AT-suse.cz>, Dave Young <hidave.darkstar-AT-gmail.com>, Martin Schwidefsky <schwidefsky-AT-de.ibm.com>, Roland McGrath <roland-AT-redhat.com>, Oleg Nesterov <oleg-AT-redhat.com>, "H. Peter Anvin" <hpa-AT-zytor.com>, David Howells <dhowells-AT-redhat.com>, Ingo Molnar <mingo-AT-elte.hu>, Peter Zijlstra <a.p.zijlstra-AT-chello.nl>, "Eric W. Biederman" <ebiederm-AT-xmission.com>, linux-doc-AT-vger.kernel.org, Stephen Smalley <sds-AT-tycho.nsa.gov>, Daniel J Walsh <dwalsh-AT-redhat.com>, linux-security-module-AT-vger.kernel.org|
On Wed, 16 Jun 2010, Kees Cook wrote: [Note: it would be useful to cc: the LSM list on security discussions] > Certainly. PTRACE can already be confined by SELinux and AppArmor. I'm > looking for a general approach that doesn't require a system builder to > create MAC policies for unknown software. I want to define a common core > behavior. > > > And even if you don't care about using the same security stuff the rest > > of the world is using to solve the problem this like the other half baked > > stuff you posted for links belongs as a security module. > > The LSM isn't stackable, so I can't put it there and choose this and > SELinux (for the case of software-without-a-policy). SELinux already supports a global switch for ptrace via the allow_ptrace boolean. You don't need to write any policy, just set it to 0. Global behavior can be further customized and refined (e.g. create a generic policy module for apps without an existing policy, which allows everything except things like ptrace and dangerous symlinks). SELinux users would not need the other LSM, and stacking is thus not required. - James -- James Morris <email@example.com> -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds