poudriere 3.4.0 regression: -i runs as NON_ROOT user
- Reply: Derek Schrock : "Re: poudriere 3.4.0 regression: -i runs as NON_ROOT user"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Jan 2024 00:33:25 UTC
I posted an issue on the poudriere github a few weeks ago but have not
gotten any feedback so let me ask the question here; is it now expected
that "poudriere -i" is supposed to run as a non-root user when normal
poudriere bulk builds run as root?
Here's the github issue:
https://github.com/freebsd/poudriere/issues/1100
The appended is the way I have debugged ports ever since I first learned
how to use poudriere 7 years ago. Now I have to take the additional step
of using jexec to get a root shell in the jail otherwise bsd.port.mk
thinks UID = 0 and tries to chown/chmod things which doesn't work when
it's actually running as nobody...
Craig
zinc 1 # poudriere bulk -i -j 13release -p current ports-mgmt/pkg
nobody@zinc:/usr/ports/ports-mgmt/pkg % ps ut
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 13864 0.0 0.0 13680 2964 1 SJ 21:39 0:00.00 login [pam]
(login)
root 13865 0.0 0.0 13656 2972 1 SJ 21:39 0:00.01 su -m nobody
-c csh
nobody 13869 0.0 0.0 13936 3196 1 SJ 21:39 0:00.00 _su -m -c csh
(csh)
nobody 13871 0.0 0.0 13936 3836 1 SJ 21:39 0:00.01 csh
nobody 14094 0.0 0.0 13444 2852 1 R+J 21:39 0:00.00 ps ut
nobody@zinc:/usr/ports/ports-mgmt/pkg %