]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r317269
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 May 2017 20:21:59 +0000 (20:21 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 May 2017 20:21:59 +0000 (20:21 +0000)
commita26ada0190ecef79e607ce20a4b8f40d3d872c81
tree37071fb2b9978d9e2ea303d16ca0714192c2701c
parentc789b86e2161fdf4c7a2a2d47dc517766cabc3d5
MFC: r317269
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. The default
values of 0 meant that setting a group to "wheel" would fail even when
done by root.
It also adds a definition of GID_NOGROUP to sys/conf.h.

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