[Rpm-maint] [rpm-software-management/rpm] Set errno to EPERM for dangerous symlinks (PR #3175)
Florian Festi
notifications at github.com
Wed Jun 19 13:20:12 UTC 2024
RPM refuses to follow non root owned symlinks pointing to files owned by another user for security reasons. This case was lumped in with other issues resulting in us setting errno to ENOTDIR. This led to confusing as the symlink often indeed points at a directory. Using EPERM is still not 100% right but points at least roughly into the right direction.
May be we should catch EPERM further up the call stack and use it to give a more meaningfull error message.
Resolves: #3100
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3175
-- Commit Summary --
* Set errno to EPERM for dangerous symlinks
-- File Changes --
M lib/fsm.c (7)
M tests/rpmi.at (4)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3175.patch
https://github.com/rpm-software-management/rpm/pull/3175.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3175
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3175 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240619/9a938f3a/attachment-0001.html>
More information about the Rpm-maint
mailing list