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

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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