[Rpm-maint] [rpm-software-management/rpm] 4.15.1: problem with rpm and --root option (#1372)

Tomasz Kłoczko notifications at github.com
Mon Sep 28 08:31:03 UTC 2020


I don't think that rpm should be doing anything using chroot() for simple query.
To make query all what needs to be done is just add base root path (for /var/lib/rpm, /etc/rpm and /var/lib/rpm as well).
On install/upgrade/remove the same if will be done from non-root current checks is uid=0 is IMO enough to exit with non-zero code.
chroot() will be only necessary for install/upgrade/remove/verify operations (for (%verifyscript) from root or when rpm process will have necessary capabilities to call chroot().

Nevertheless currently -r/--root does not work even for queries.


-- 
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/1372#issuecomment-699862822
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200928/ac04eec2/attachment.html>


More information about the Rpm-maint mailing list