Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 18:17:48 -0800
From:      Craig Leres <leres@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: poudriere 3.4.0 regression: -i runs as NON_ROOT user
Message-ID:  <c1a8b664-317d-446d-b2f7-9ee7511dcff9@freebsd.org>
In-Reply-To: <ZaGC8pOtQ-cQV05A@ircbsd.lifeofadishwasher.com>
References:  <bbd3b92d-40f3-41f6-a802-001610b35c8b@freebsd.org> <ZaGC8pOtQ-cQV05A@ircbsd.lifeofadishwasher.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/12/24 10:20, Derek Schrock wrote:
> You can `su -l` as nobody in the jail to get to root too.

Helpful, thanks!

 >                                                            Still extra
> but I do believe it is executed that interactive is started as non-root
> when building as non-root.

If this change is documented somewhere I haven't seen it. And if if this 
is the desired behavior, there's still something not quite right as UID 
is set to 0 which breaks things. I *think* poudriere is setting it 
because bsd.port.mk appears to set it to .MAKE.UID if it's not already 
defined (and .MAKE.UID is set correctly).

		Craig

zinc 143 # poudriere bulk -i -C -j 13release -p current-patched 
ports-mgmt/pkg
[00:00:00] Creating the reference jail... done
[...]
[00:01:18] Entering interactive test mode. Type 'exit' when done.
nobody@zinc:/usr/ports/ports-mgmt/pkg % whoami
nobody
nobody@zinc:/usr/ports/ports-mgmt/pkg % make -V UID
0
nobody@zinc:/usr/ports/ports-mgmt/pkg % make -V  .MAKE.UID
65534




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c1a8b664-317d-446d-b2f7-9ee7511dcff9>