Bug 627788
Summary: | slip.util.files.overwrite_safely fails when SELinux is disabled | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt McCutchen <matt> | |
Component: | python-slip | Assignee: | Nils Philippsen <nphilipp> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 13 | CC: | nphilipp, pasteur | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | python-slip-0.2.13-1.fc13 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 716391 755939 (view as bug list) | Environment: | ||
Last Closed: | 2010-09-02 20:37:55 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: | 716391 |
Description
Matt McCutchen
2010-08-27 00:33:10 UTC
I seem to have misunderstood the possible return values of selinux.is_selinux_enabled(): commit 6502bebb6b94d613e84e2cc517a299e2cb9028c9 Author: Nils Philippsen <nils> Date: Tue Aug 31 15:43:30 2010 +0200 fix overwrite_safely() if SELinux is disabled (#627788) diff --git a/slip/util/files.py b/slip/util/files.py index b248d17..1b2887d 100644 --- a/slip/util/files.py +++ b/slip/util/files.py @@ -165,7 +165,7 @@ def overwrite_safely(path, content, preserve_mode=True, preserve_context=True): exists = os.path.exists(path) - if preserve_context and selinux.is_selinux_enabled() < 0: + if preserve_context and selinux.is_selinux_enabled() <= 0: preserve_context = False try: According to your comment on the Fedora update page: mattmccutchen - 2010-08-27 00:44:12 I'm unable to test bug 615819 because bug 627788 prevents system-config-date from saving the configuration at all on my SELinux-disabled system. I tried downgrading to python-slip-0.2.11-1.fc13 and the same problem occurs, so it's not a regression; I'm not sure what changed since I initially filed bug 615819. It may even be that something changed in libselinux/-python (but that doesn't really matter now). python-slip-0.2.13-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/python-slip-0.2.13-1.fc14 python-slip-0.2.13-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/python-slip-0.2.13-1.fc13 python-slip-0.2.13-1.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/python-slip-0.2.13-1.fc12 python-slip-0.2.13-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update python-slip'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/python-slip-0.2.13-1.fc13 python-slip-0.2.13-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. python-slip-0.2.13-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. python-slip-0.2.13-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |