default uid/gid for nfsuserd.c

Rick Macklem rmacklem at uoguelph.ca
Fri Apr 21 20:37:43 UTC 2017


Hi,

I just added GID_NOGROUP to sys/conf.h and fixed the initial values for
nobody/nogroup in the kernel.
However, UID_NOBODY and GID_NOGROUP are in the _KERNEL section of
sys/conf.h, so they aren't visible in userland.

So, how to I set the initial uid/gid values for nfsuserd.c?
(nfsuserd.c looks for entries in the password and group databases, so these defaults
 only get used if it doesn't find an entry in the database.)
I don't mind using the hardcoded values, but is there a better way?
(Moving the #define's out of the _KERNEL section maybe?)

rick


More information about the freebsd-current mailing list