Bug 454987
Summary: | getcap should not follow symlinks to directories in recursive mode | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lukas Kuklinek <lkukline> | ||||
Component: | libcap | Assignee: | Karsten Hopp <karsten> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | pvrabec, quantumburnz | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-11-21 15:55:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 449984 | ||||||
Attachments: |
|
Description
Lukas Kuklinek
2008-07-11 10:26:13 UTC
Heve a look at stat() function... there is version that does not follow symlinks named lstat(), but manpage says it is availible only for _BSD_SOURCE || _XOPEN_SOURCE >= 500 Created attachment 311829 [details] patch (fix candidate) This patch is an fix candidate for this bug. It replaces all the code for managing recursive walking through directory tree by nftw() system library call. With this patch, getcap does not follow symlinks at all (like find utility). Fixes also bug #449986. *** Bug 449986 has been marked as a duplicate of this bug. *** It looks like libcap-2.13.tar.gz is released here, http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/, so this should probably be repackaged at some point. I'm not sure if the new version fixes this problem because I couldn't find anything in the change log. However, I would recommend you submit your patch upstream as well. Patch was sent to upstream and is already applied in git. Thanks for the update and nice work! |