Bug 1195004
Summary: | libselinux-python3 calls os.path.walk | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> | ||||
Component: | libselinux | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | dwalsh, mgrepl, plautrba | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libselinux-2.3-9.fc21 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-04-28 13:10:09 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1024357 | ||||||
Attachments: |
|
Description
Miro Hrončok
2015-02-21 22:02:36 UTC
Should be replaced by https://docs.python.org/2/library/os.html#os.walk If I understand the call correctly, it could be replaced by: if recursive: for root, dirs, files in os.walk(path): for fname in files + dirs: restorecon(os.path.join(root,fname)) Here is a scratch build with proposed fix. http://koji.fedoraproject.org/koji/taskinfo?taskID=9020684 Created attachment 994296 [details]
Patch to fix this, so it works on both Pythons
libselinux-2.3-9.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/libselinux-2.3-9.fc22 libselinux-2.3-9.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/libselinux-2.3-9.fc21 Package libselinux-2.3-9.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libselinux-2.3-9.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-6771/libselinux-2.3-9.fc21 then log in and leave karma (feedback). libselinux-2.3-9.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. libselinux-2.3-9.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |