Bug 666365 - setsebool should complain it's not running as root
Summary: setsebool should complain it's not running as root
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 14
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-30 11:28 UTC by Richard Fearn
Modified: 2013-03-05 11:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-21 21:01:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard Fearn 2010-12-30 11:28:10 UTC
Description of problem:

When setsebool isn't run as root, it complains that it can't set a boolean without a managed policy. The real problem is that it's not running as root. As expected, it works when it's run using sudo.

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

policycoreutils-2.0.83-33.5.fc14.x86_64

Steps to Reproduce:

1. Run setsebool, but not as root
  
Actual results:

[rich@e6500 ~]$ setsebool -P httpd_enable_homedirs 1
Cannot set persistent booleans without managed policy.
Could not change policy booleans

Expected results:

Should warn that it's not running as root. The current message gives the impression that there's no policy, which there is.

Comment 1 Daniel Walsh 2011-01-06 21:48:44 UTC
Fixed in  policycoreutils-2.0.83-33.7


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