Bug 1572500
Summary: | rmtree with safe = 0 does not work | |||
---|---|---|---|---|
Product: | Red Hat Software Collections | Reporter: | Martin Kyral <mkyral> | |
Component: | perl-File-Path | Assignee: | perl-maint-list | |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rh-perl526 | CC: | ppisar | |
Target Milestone: | --- | |||
Target Release: | 3.7 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1584709 1809542 (view as bug list) | Environment: | ||
Last Closed: | 2021-02-15 07:38:43 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Martin Kyral
2018-04-27 07:24:39 UTC
This seems to be caused by CVE-2017-6512 fix that's part of File-Path-2.13 release. Also our backport to 2.12 suffers from it. If a directory cannot be entered (chdir), the new code will open the affected directory for reading to obtain a file descriptor to pass it to fchmod() to change the directory's permissions to retry the chdir(). But in the reported case, the directory is missing a read permission (mode 0000), thus the open() fails and the code reports an error. Obviously the code was written to deal with non-writable directories. Non-readable directories is the new issue. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |