Re: poudriere 3.4.0 regression: -i runs as NON_ROOT user

From: Derek Schrock <dereks_at_lifeofadishwasher.com>
Date: Sat, 13 Jan 2024 06:17:19 UTC
On Fri, Jan 12, 2024 at 09:17:48PM EST, Craig Leres wrote:
> 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
> 
> 

It seems like you have PORTBUILD_UID set in poudriere.conf? UID is just
id -u and pw useradd command uses that var.  But it's 65534 for me (the
default) I'm using -devel though.