|| ||Michael Stone <michael-AT-laptop.org> |
|| ||linux-kernel-AT-vger.kernel.org |
|| ||A basic question about the security_* hooks |
|| ||Wed, 23 Dec 2009 21:29:02 -0500|
Andi Kleen <andi-AT-firstfloor.org>, David Lang <david-AT-lang.hm>,
Oliver Hartkopp <socketcan-AT-hartkopp.net>,
Alan Cox <alan-AT-lxorguk.ukuu.org.uk>,
Herbert Xu <herbert-AT-gondor.apana.org.au>,
Valdis Kletnieks <Valdis.Kletnieks-AT-vt.edu>,
Bryan Donlan <bdonlan-AT-gmail.com>,
Evgeniy Polyakov <zbr-AT-ioremap.net>,
"C. Scott Ananian" <cscott-AT-cscott.net>,
James Morris <jmorris-AT-namei.org>,
"Eric W. Biederman" <ebiederm-AT-xmission.com>,
Bernie Innocenti <bernie-AT-codewiz.org>,
Mark Seaborn <mrs-AT-mythic-beasts.com>,
Randy Dunlap <randy.dunlap-AT-oracle.com>,
AmÃ©rico Wang <xiyou.wangcong-AT-gmail.com>,
Michael Stone <michael-AT-laptop.org>|
|| ||Article, Thread
Dear kernel folks,
There are a variety of places where I'd like to be able to get the kernel to
return EPERM more often . Many of these places already have security hooks.
Unfortunately, I don't feel that I can make effective use of these hooks
because they seem to be "occupied" by the large mandatory access control
I'm hoping that you can tell me why this state of affairs persists.
More specifically, now that LSMs are statically linked, why is it good for the
security hooks to call into a single monolithic "security_ops" struct instead
of cheaper and simpler alternatives?
In particular, what would be worse about a kernel in which each security hook
contained nothing but conditionally-compiled function calls to the appropriate
"real" implementation functions with early-exit jumps on non-zero return codes?
: Two examples include my recent network-privileges patches and Eric
Biederman's suggestions on how to make unprivileged unshare(CLONE_NEWNET) safe.
I have little doubt that I'd think of more if I thought that the security hooks
were accessible to me.
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
to post comments)