From: Chris Wright <chris@wirex.com>
To: Shaya Potter <spotter@cs.columbia.edu>
Cc: viro@parcelfarce.linux.theplanet.co.uk, linux-fsdevel@vger.kernel.org
Subject: Re: changing permission()/vfs_permission... to work on dentry
Date: Wed, 28 May 2003 21:38:09 -0700 [thread overview]
Message-ID: <20030528213809.A6734@figure1.int.wirex.com> (raw)
In-Reply-To: <1054182023.10017.53.camel@zaphod>; from spotter@cs.columbia.edu on Thu, May 29, 2003 at 12:20:23AM -0400
* Shaya Potter (spotter@cs.columbia.edu) wrote:
> On Wed, 2003-05-28 at 20:55, viro@parcelfarce.linux.theplanet.co.uk
> wrote:
> > So give it a _REAL_ namespace. And bind /dev/null over /bin/sh in it.
> > And revoke the capability to call mount(2) and umount(2). End of story.
>
> The issue w/ the fs namespaces the kernel supports (at least AFAI
> understand them) is that you can't change the underlying permission
> model.
yes, you are still stuck with inode mode bits and DAC. you can improve this
with some MAC element, like using LSM, but this will not override the
existing DAC decision, only further restrict it. and you need to either
label the inode with an extended attribute or try and deal with
pathnames as you've already mentioned.
> so for example, an "apache namespace" you might want it to only have
> read only access to everything besides a few files in /var/log. Can one
> do that w/ namespaces?
true. per-mountpoint read-only would allow you to create a namespace
to do this. however, this gets back to changing permission() to taking
vfsmount (or likely just nameidata) so that the IS_RDONLY() check could
see mountpoint specific flags as well as the super_block flags. as i'm
sure you've found, this changes a lot of code ;-)
cheers,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2003-05-29 4:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-29 0:55 changing permission()/vfs_permission... to work on dentry viro
2003-05-29 4:20 ` Shaya Potter
2003-05-29 4:38 ` Chris Wright [this message]
2003-05-29 8:27 ` viro
2003-05-29 8:21 ` [long] per-mountpoint readonly viro
2003-05-29 9:02 ` Trond Myklebust
2003-05-29 9:31 ` viro
2003-05-29 9:42 ` Christoph Hellwig
2003-05-29 16:24 ` Bryan Henderson
2003-05-29 19:22 ` viro
2003-05-29 21:30 ` Bryan Henderson
-- strict thread matches above, loose matches on Subject: below --
2003-05-28 20:43 changing permission()/vfs_permission... to work on dentry Shaya Potter
2003-05-28 21:48 ` viro
2003-05-28 22:34 ` Shaya Potter
2003-05-28 22:53 ` viro
2003-05-29 0:33 ` Shaya Potter
2003-05-29 12:25 ` Jan Hudec
2003-05-29 12:41 ` viro
2003-05-29 12:40 ` Lucas Correia Villa Real
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030528213809.A6734@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=spotter@cs.columbia.edu \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox