From: Shaya Potter <spotter@cs.columbia.edu>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: linux-kernel@vger.kernel.org
Subject: Re: permission() operating on inode instead of dentry?
Date: 28 May 2003 01:56:20 -0400 [thread overview]
Message-ID: <1054101380.7005.113.camel@zaphod> (raw)
In-Reply-To: <20030528054804.GF27916@parcelfarce.linux.theplanet.co.uk>
I'm going to assume this mean "it's a reasonable idea, all that matters
is the execution"
On Wed, 2003-05-28 at 01:48, viro@parcelfarce.linux.theplanet.co.uk
wrote:
> On Wed, May 28, 2003 at 01:19:40AM -0400, Shaya Potter wrote:
> > [please cc: responses to me, have 10k message backlog in l-k folder)
> >
> > Is there a good reason why the fs permission function operates on the
> > inode instead of the dentry? It would seem if the dentry was passed into
> > the function instead of the inode, one would have a better structure to
> > play with, such as being able to use d_put() to get the real path name.
> > The inode is still readily accessible from the dentry.
>
> man grep.
>
> Then use the resulting knowledge to find the callers of said function in
> the tree.
>
> Then think where you would get dentry (and vfsmount, since you want path)
> for each of these. Exclude ones that have them available. See which
> functions contain the rest of calls.
Why would the calling process not be the right place? Everything should
have a calling process, or am I missing something?
<snipped how to get it done>
thanks,
shaya
prev parent reply other threads:[~2003-05-28 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 5:19 Shaya Potter
2003-05-28 5:48 ` viro
2003-05-28 5:56 ` Shaya Potter [this message]
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=1054101380.7005.113.camel@zaphod \
--to=spotter@cs.columbia.edu \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®