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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to