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

2018-08-21 Thread Jeff Johnson
Closed #510. -- 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#event-1800052994___ Rpm-maint mailing list

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

2018-08-13 Thread Jeff Johnson
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.