Bug 825163

Summary: setsebool does not accept some arguments formats
Product: [Fedora] Fedora Reporter: Martin Kosek <mkosek>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-17 22:24:08 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 Kosek 2012-05-25 09:31:04 UTC
Description of problem:
The way that setsebool accepts booleans looks broken:

[root@vm-143 ~]# setsebool -P httpd_manage_ipa off
[root@vm-143 ~]# setsebool httpd_manage_ipa off   <<<< should work

Usage:  setsebool [ -NP ] boolean value | bool1=val1 bool2=val2...



[root@vm-143 ~]# setsebool httpd_manage_ipa=off
[root@vm-143 ~]# setsebool -P httpd_manage_ipa=off  <<<< should work
setsebool: illegal value httpd_manage_ipa=off for boolean -P


Version-Release number of selected component (if applicable):
policycoreutils-2.1.11-16.fc17.x86_64

How reproducible:


Steps to Reproduce:
1. Run all 4 variations of booleans passed to setsebool
2.
3.
  
Actual results:
Some of them report error

Expected results:
All of them succeed

Comment 1 Daniel Walsh 2012-05-29 17:27:19 UTC
THey all seem to work for me

rpm -q policycoreutils
policycoreutils-2.1.11-18.fc18.x86_64

# setsebool -P httpd_manage_ipa off
# setsebool httpd_manage_ipa off
# setsebool httpd_manage_ipa=off
# setsebool -P httpd_manage_ipa=off

Comment 2 Fedora Update System 2012-05-29 17:43:44 UTC
policycoreutils-2.1.11-18.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-8405/policycoreutils-2.1.11-18.fc17

Comment 3 Fedora Update System 2012-06-17 22:24:08 UTC
policycoreutils-2.1.11-18.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.