[Rpm-maint] [rpm-software-management/rpm] RFE: rpmbuild --root should undertake similar operations to rpm --root running scripts (#510)

Jeff Johnson notifications at github.com
Tue Aug 14 00:26:59 UTC 2018


rpmbuild  --root should do what is expected, namely do a chroot into the prefix before running scripts.

Yes chroot(2) requires root, thank you POSIX. To preserve the mantra "Never invoke rpmbuild as root" behavior, rpmbuild should drop root privileges, and switch back to root only when needed.

(aside)
Dropping root privileges until needed is equally wise for rpm installations, but that is not this RFE.

The root prefix might also need to be prepended to file paths for packages produced by rpmbuild similar to what is done opening an rpmdb.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/510
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180813/ac58c890/attachment.html>


More information about the Rpm-maint mailing list