Bug 825163 - setsebool does not accept some arguments formats
Summary: setsebool does not accept some arguments formats
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-25 09:31 UTC by Martin Kosek
Modified: 2012-06-17 22:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-17 22:24:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.