From: "J. Bruce Fields" <bfields@fieldses.org>
To: Rick Macklem <rmacklem@uoguelph.ca>
Cc: linux-nfs@vger.kernel.org,
Norbert Aschendorff <norbert.aschendorff@yahoo.de>,
Trond Myklebust <trond@netapp.com>
Subject: Re: NFSv4, Name (string) mapping vs. raw UID, idmapd and Kernels >= 3.3
Date: Fri, 24 Aug 2012 18:02:19 -0400 [thread overview]
Message-ID: <20120824220219.GB21832@fieldses.org> (raw)
In-Reply-To: <900847353.1046192.1345767936102.JavaMail.root@erie.cs.uoguelph.ca>
On Thu, Aug 23, 2012 at 08:25:36PM -0400, Rick Macklem wrote:
> Then on the next page:
>
> To provide a greater degree of compatibility with previous versions
> of NFS (i.e., v2 and v3), which identified users and groups by 32-bit
> unsigned uid's and gid's, owner and group strings that consist of
> decimal numeric values with no leading zeros can be given a special
> interpretation by clients and servers which choose to provide such
> support.
> ** The receiver may treat such a user or group string as
> representing the same user as would be represented by a v2/v3 uid or
> gid having the corresponding numeric value. A server is not
> obligated to accept such a string, but may return an NFS4ERR_BADOWNER
> instead.
> --> To avoid this mechanism being used to subvert user and
> group translation, so that a client might pass all of the owners and
> groups in numeric form, a server SHOULD return an NFS4ERR_BADOWNER
> error when there is a valid translation for the user or owner
> designated in this way. In that case, the client must use the
> appropriate name@domain string and not the special form for
> compatibility.
>
> The sentence at "**" says a receiver "may" recognize the numeric uid/gid#
> string. This would suggest that a client isn't expected/required to do so,
> as I read it. (This page seems to be very confusing w.r.t. what clients/servers
> are expected/required to support.)
> The sentence at "-->" is a SHOULD (not a MUST, I admit) that seems to
> say a server should only allow numeric uid/gid# strings when there isn't
> a name<->uid/gid# translation and should avoid allowing clients to just
> use uid/gid# strings?
Yeah, I thought I remembered some stronger requirement on the client,
but the strongest I can get out of this is: "well, it says the server
MAY return numeric id's, so that effectively means the client MUST
handle them"... but that doesn't really require the client to do
anything in particular with them.
Cc'ing Trond in case he remember some language we overlooked. Of course
3530bis is different:
http://tools.ietf.org/html/draft-ietf-nfsv4-rfc3530bis-18#section-5.9
"The client MUST always accept numeric values if the security
mechanism is not RPCSEC_GSS."
> Anyhow, I do plan to re-enable support for numeric uid/gid# strings in
> the FreeBSD NFSv4 client, but it won't be released until 9.2 at the
> earliest. (I, personally, have no problem with numeric uid/gid# strings.
> I disabled support for them because I had thought the working group
> didn't want them supported.)
OK. Yes it's been confusing!
--b.
prev parent reply other threads:[~2012-08-24 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 9:21 NFSv4, Name (string) mapping vs. raw UID, idmapd and Kernels >= 3.3 Norbert Aschendorff
2012-08-23 14:46 ` J. Bruce Fields
2012-08-23 15:04 ` Norbert Aschendorff
2012-08-24 0:25 ` Rick Macklem
2012-08-24 22:02 ` J. Bruce Fields [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=20120824220219.GB21832@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=norbert.aschendorff@yahoo.de \
--cc=rmacklem@uoguelph.ca \
--cc=trond@netapp.com \
/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).