]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set default uid/gid to nobody/nogroup for NFSv4 mapping.
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 21 Apr 2017 01:50:41 +0000 (01:50 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 21 Apr 2017 01:50:41 +0000 (01:50 +0000)
commita0f1f60c3da1147b32ba34d7d581c9d4861925f9
treec470783777fc0d8005128d3fbea559f0e6a15328
parent50b4b1b5200c8c8b7512bdc87cfe9acd84e4f8bf
Set default uid/gid to nobody/nogroup for NFSv4 mapping.

The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon.
However, they were 0 until the nfsuserd(8) was run. Since it is
possible to use NFSv4 without running the nfsuserd(8) daemon, set them
to nobody/nogroup initially.
Without this patch, the values would be set by the nfsuserd(8) daemon
and left changed even if the nfsuserd(8) daemon was killed. Also, the default
values of 0 meant that setting a group to "wheel" would fail even when
done by root and this patch fixes this issue.

MFC after: 2 weeks
sys/fs/nfs/nfs_commonsubs.c