From: Olaf Kirch <okir@suse.de>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Christoph Hellwig <hch@infradead.org>,
nfs@lists.sourceforge.net, Paul Szabo <psz@maths.usyd.edu.au>
Subject: Re: #255931 NFS fh_verify causes lost output
Date: Fri, 20 Aug 2004 11:44:38 +0200 [thread overview]
Message-ID: <20040820094438.GB23176@suse.de> (raw)
In-Reply-To: <16677.25168.374531.344188@cse.unsw.edu.au>
Hi Neil,
> Originally, the check here was "does anyone other that root have x
> permission" and "it is exported root_squash".
> If the first was "no" and the second was "yes", then access was
> denied.
But that is an access control check; and a failed access control
check should return EACCES.
Probably the worst aspect of returning ESTALE is that this information
is cached persistently by the client; it doesn't time out. So it will
never clear up, even if the directory is changed to mode 777 in the
meanwhile.
> 2/ change the error to EPERM, which is wrong because filehandle
> lookup itself shouldn't return EPERM, and if the failure is
Then we shouldn't mix permission checks with file handle lookup.
As far as I understand, the only reason this permission check is
done inside the file handle lookup is because a file handle may
potentially map to more than on dentry chain?
For what it's worth, I can live with both solution 1 and solution 2.
I don't believe in 4.
Olaf
--
Olaf Kirch | The Hardware Gods hate me.
okir@suse.de |
---------------+
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
prev parent reply other threads:[~2004-08-20 9:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-18 20:00 #255931 NFS fh_verify causes lost output Christoph Hellwig
2004-08-19 8:30 ` Olaf Kirch
2004-08-20 2:30 ` Neil Brown
2004-08-20 9:44 ` Olaf Kirch [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=20040820094438.GB23176@suse.de \
--to=okir@suse.de \
--cc=hch@infradead.org \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs@lists.sourceforge.net \
--cc=psz@maths.usyd.edu.au \
/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.