linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reconnect_path fails with EACCES
@ 2012-08-08 21:25 Rajesh Ghanekar
  2012-08-09 18:12 ` J. Bruce Fields
  0 siblings, 1 reply; 4+ messages in thread
From: Rajesh Ghanekar @ 2012-08-08 21:25 UTC (permalink / raw)
  To: linux-nfs

Hi,
I am facing problem with reconnect_path failing with EACCES when doing
lookup_one_len. I have 2 users goind to same directory, one with uid=0
and another with uid=xxx. Sometime for uid=0 request, nfsd is still is using
uid=xxx (as it was used previously), as uid=xxx doesn't have any permissions
on the directory.

Should this probably do nfsd_setuser_and_check_port before
the below code in nfsd_set_fh_dentry()? As it carries older
fsuid and fsgid, can it create issues. This always happens
with disconnected dentries.

        if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) {
                /* Elevate privileges so that the lack of 'r' or 'x'
                 * permission on some parent directory will
                 * not stop exportfs_decode_fh from being able
                 * to reconnect a directory into the dentry cache.
                 * The same problem can affect "SUBTREECHECK" exports,
                 * but as nfsd_acceptable depends on correct
                 * access control settings being in effect, we cannot
                 * fix that case easily.

Thanks,
Rajesh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-13 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08 21:25 reconnect_path fails with EACCES Rajesh Ghanekar
2012-08-09 18:12 ` J. Bruce Fields
2012-08-13 13:54   ` Rajesh Ghanekar
2012-08-13 14:30     ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).