Bug 195850 - setsebool/getsebool have inconsistent input and output values
Summary: setsebool/getsebool have inconsistent input and output values
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-18 20:03 UTC by Hans Ulrich Niedermann
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-19 14:29:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hans Ulrich Niedermann 2006-06-18 20:03:06 UTC
Description of problem:

  "getsebool" prints the bools as being "on" or "off", but "setsebool" only
accepts the values "false" (aka "0") and "true" (aka "1").

Version-Release number of selected component (if applicable):

  policycoreutils-1.30.10-2.fc5

Steps to Reproduce:
1. Run "getsebool allow_execstack".
2. Read "allow_execstack --> on" (or "off").
3. Run "setsebool allow_execstack=on" (or "off") to set it to the very same
value the bool already has.
  
Actual results:

  setsebool: illegal value on for boolean allow_execstack

Expected results:

  <nothing>
  
  setsebool should just quietly set the value.

Comment 1 Daniel Walsh 2006-06-19 14:29:55 UTC
Fixed in policycoreutils-1.30.14-2 in rawhide.  This will be backported to FC5
if we need to update policycoreutils in the future.  Not worth doing it for this
minor change.


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