Bug 693346
Summary: | [RFE] functions to manage selinux booleans | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karel Srot <ksrot> | ||||
Component: | beakerlib | Assignee: | Petr Muller <pmuller> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | dapospis, ohudlick, pmuller, psplicha | ||||
Target Milestone: | --- | Keywords: | FutureFeature, Patch | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | beakerlib-1.9-3.fc20 | Doc Type: | Enhancement | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 987616 (view as bug list) | Environment: | |||||
Last Closed: | 2014-07-30 06:57:53 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: | 555302 | ||||||
Bug Blocks: | 1116308, 1116317 | ||||||
Attachments: |
|
+1 to get this into BeakerLib. I have augmented the code with docs, some defensiveness and also tests for the testsuite, and checked it in. https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=ef63d60dbe3e5f162da37a883aaa835fa890b54a There should be also option -P in those on/off functions so the change could be done persistently. -P should not be default as it slow down the test time while it is not always necessary. This can be complication in restore. This will be reverted, as it is currently present in a better form in a Beaker library. beakerlib-1.9-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/beakerlib-1.9-1.fc20 Package beakerlib-1.9-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing beakerlib-1.9-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7442/beakerlib-1.9-1.fc20 then log in and leave karma (feedback). beakerlib-1.9-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/beakerlib-1.9-2.fc20 Please consider the package fixing this bug available in Fedora stable repos once bz1116308 is closed and RHEL stable repos once bz1116317 is closed. Fixed in: beakerlib-1.9-2.fc19 beakerlib-1.9-2.fc20 beakerlib-1.9-2.fc21 beakerlib-1.9-3.el5 beakerlib-1.9-2.el6 beakerlib-1.9-2.el7 beakerlib-1.9-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/beakerlib-1.9-3.fc20 beakerlib-1.9-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 489742 [details] proposed implementation Description of problem: New functions to turn on/off and restore selinux boolean similar to rlService{Start|Stop|Restore}. My own implementation attached. I am using a text file in $BEAKERLIB_DIR to store the original status.