All of lore.kernel.org
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: Jan Hudec <bulb@ucw.cz>, Shaya Potter <spotter@cs.columbia.edu>,
	linux-fsdevel@vger.kernel.org
Subject: Re: changing permission()/vfs_permission... to work on dentry
Date: Thu, 29 May 2003 13:41:27 +0100	[thread overview]
Message-ID: <20030529124127.GQ14138@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030529122548.GF771@vagabond>

On Thu, May 29, 2003 at 02:25:48PM +0200, Jan Hudec wrote:
 
> 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).

If you have bogus links sitting around, you might very well have bogus
copies too.

> 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).

Filesystem methods should _not_ depend on the instance they are working
on.  IOW, control over namespace does not belong to fs - it doesn't get
to decide where it's mounted and it certainly doesn't get to work in
different ways depending on where it's mounted.  All such stuff belongs
to VFS and nowhere else.

  reply	other threads:[~2003-05-29 12:28 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
2003-05-29 12:41           ` viro [this message]
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=20030529124127.GQ14138@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=bulb@ucw.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=spotter@cs.columbia.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.