Bug 666365

Summary: setsebool should complain it's not running as root
Product: [Fedora] Fedora Reporter: Richard Fearn <richardfearn>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl, mmalik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-21 21:01:36 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:

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