[Rpm-maint] [rpm-software-management/rpm] Honor alternate root in system user/group provides (PR #4095)
Michal Domonkos
notifications at github.com
Thu Jan 22 14:59:23 UTC 2026
@dmnks commented on this pull request.
> @@ -672,6 +673,8 @@ static int systemProvides(rpmts ts, rpmds dep)
size_t nlen = strlen(n);
char *dval = NULL;
+ rpmChrootSet(rpmtsRootDir(ts));
Indeed, the worry pretty much boils down to that open() call, otherwise we're not using the rpmchroot API in there. One obvious use case would be when you, as a regular user, enter a directory only accessible by the root user and then run a test transaction (still as a regular user), which would currently (probably) work. But it does seem like a corner case. Yet, it could break some existing scripts out there :sweat_smile:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4095#discussion_r2717281067
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4095/review/3692923832 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260122/77b7c9a0/attachment.htm>
More information about the Rpm-maint
mailing list