Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2017 22:56:20 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>,  Bruce Evans <bde@freebsd.org>
Subject:   Re: kernel coding of nobody/nogroup
Message-ID:  <20170421222601.U2526@besplex.bde.org>
In-Reply-To: <YTXPR01MB01891B0098C7E163B8D82CC6DD1A0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
References:  <YTXPR01MB01891B0098C7E163B8D82CC6DD1A0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Apr 2017, Rick Macklem wrote:

> I need to set the default uid/gid values for nobody/nogroup into kernel
> variables. I reverted the commit that hardcoded them, since I agree that
> wasn't a good thing to do.
>
> I didn't realize that "nobody" was already defined in sys/conf.h and I can
> use that.

I didn't know nobody was already there either.  They are only used by zfs,
while the others were originally only sed for devices.

> There is no definition for "nogroup" in sys/conf.h.
> Would it be ok to add
> #define GID_NOGROUP  65533
> to syy/conf.h?
> (I know bde@ doesn't like expressing this as 65533, but that is what it is in /etc/group.)

sys/conf.h already has GID_NOBODY but it is subtly different from
GID_NOGROUP.  It seems to be a bug that zfs uses nobody's gid instead
of the gid nogroup which is used by no body.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170421222601.U2526>