]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r265252
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 20:52:25 +0000 (20:52 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 20:52:25 +0000 (20:52 +0000)
commit3f021ca53d26d7618ae4a5910d8f1963578eb8eb
tree93631c013a46cbeb153933fc8e93e6fc4cda7487
parent2efe46049c660c20c4462998c79ff1e89fea3bae
MFC: r265252
The new draft specification for NFSv4.0 specifies that a server
should either accept owner and owner_group strings that are just
the digits of the uid/gid or return NFS4ERR_BADOWNER.
This patch adds a sysctl vfs.nfsd.enable_stringtouid, which can
be set to enable the server w.r.t. accepting numeric string. It
also ensures that NFS4ERR_BADOWNER is returned if numeric uid/gid
strings are not enabled. This fixes the server for recent Linux
nfs4 clients that use numeric uid/gid strings by default.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfsserver/nfs_nfsdport.c