From: Jan Hudec <bulb@ucw.cz>
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: Thu, 29 May 2003 14:25:48 +0200 [thread overview]
Message-ID: <20030529122548.GF771@vagabond> (raw)
In-Reply-To: <1054168407.9962.45.camel@zaphod>
On Wed, May 28, 2003 at 08:33:27PM -0400, Shaya Potter wrote:
> On Wed, 2003-05-28 at 18:53, viro@parcelfarce.linux.theplanet.co.uk
> wrote:
> > Erm. Based on a _pathname_? I.e. just on a string?
>
> yes. The issue we are trying to solve (much like SubDomain
> http://www.immunix.org/subdomain.html) is that you have a single fs, but
> not every application needs access to that entire namespace, but from an
> administrative point of view, its easier to deal w/ a single namespace.
> For instance, sendmail doesn't need /bin/sh, it be fairly hard to
> administrate a sendmail box that didn't have it though. If there's no
> /bin/sh in the processes "namespace" (used loosely, as in mode 000 to it
> and even uid 0 processes) the ability to get a root shell is limited.
>
> The problem is, one would have a problem storing all this attribute data
> for every file in a system as there can be many contexts. If one can
> store the rules instead and use "string compares" (well, not really
> string compares as that could be too slow) one can partition off the
> applications.
>
> So why not chroot? well, it doesn't work so well for uid 0 apps, as
> they can chroot themselves again. and even if that wasn't an issue, one
> isn't operating under a single namespace anymore so it makes
> administration harder.
Perhaps it's a stupid idea, but couldn't you resolve the names to inode
numbers first (though it would require checking when something happens
to those inodes)? I would expect you need to make the file (eg. shell)
unaccessible and not just one of it's dentries (eg. /bin/sh).
Perhaps this would be solved by the intent patches anyway. Since the
intent should be passed to all the methods, it should make it to
permission too. And since it will probably be boud to nameidata, it
would include everything (even the vfsmount).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
next prev parent reply other threads:[~2003-05-29 12:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2003-05-29 12:41 ` viro
2003-05-29 12:40 ` Lucas Correia Villa Real
-- strict thread matches above, loose matches on Subject: below --
2003-05-29 0:55 viro
2003-05-29 4:20 ` Shaya Potter
2003-05-29 4:38 ` Chris Wright
2003-05-29 8:27 ` viro
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=20030529122548.GF771@vagabond \
--to=bulb@ucw.cz \
--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