From: NeilBrown <neilb@suse.com>
To: linux-nfs@vger.kernel.org
Subject: AUTH_NONE at top of SECINFO_NONAME reply.
Date: Thu, 14 Apr 2016 09:33:22 +1000 [thread overview]
Message-ID: <87k2k1jd8d.fsf@notabene.neil.brown.name> (raw)
[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]
Hi,
I have an NFSv4.1 server (Netapp, don't know about version numbers)
which responds to
PUT_ROOTFH
SECINFO_NONAME
with:
flavor: AUTH_NULL (0)
flavor: RPCSEC_GSS (6)
service: rpcsec_gss_svc_integrity (2)
flavor: RPCSEC_GSS (6)
service: rpcsec_gss_svc_none (1)
flavor: AUTH_UNIX (1)
This causes the Linux client to use AUTH_NULL, which doesn't end well
Opcode: ACCESS (3), [Access Denied: RD LU MD XT DL]
I suspect this is a server bug, because the first flavor is meant to be
the most preferred. However I wonder if there might be something else
going on.
1/ I note that for NFSv3 AUTH_NULL means something a bit different
in this context:
* AUTH_NULL has a special meaning when it's in the server list - it
* means that the server will ignore the rpc creds, so any flavor
* can be used.
Is there any chance that servers might reasonably expect that
behavior for NFSv4.1 as well??
2/ In the pseudo-root filesystem it might make sense to use AUTH_NULL,
providing something else is used when crossing in to another
filesystem.
Should the client send a new SECINFO when that happens (it may not
help in this case, I don't know) or is that really only needed when
NFS4ERR_WRONGSEC is returned?
It seems a bit asymmetric that SECINFO is use pro-actively at the start
of a session, but then only re-actively after that.
Any thoughts?
Thanks,
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next reply other threads:[~2016-04-13 23:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 23:33 NeilBrown [this message]
2016-04-18 18:26 ` AUTH_NONE at top of SECINFO_NONAME reply J. Bruce Fields
2016-04-19 21:24 ` NeilBrown
2016-04-19 22:08 ` Trond Myklebust
2016-04-19 23:13 ` NeilBrown
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=87k2k1jd8d.fsf@notabene.neil.brown.name \
--to=neilb@suse.com \
--cc=linux-nfs@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).