Bug 442464

Summary: livecd-creator and selinux issues
Product: [Fedora] Fedora Reporter: Kevin Fenzi <kevin>
Component: livecd-toolsAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: davidz, dwalsh, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-15 19:09:48 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 Kevin Fenzi 2008-04-14 21:48:19 UTC
Using livecd-creator under rawhide to try and make a Xfce live cd. 

Everything moves along normally until: 

Installing: setroubleshoot               #####################
[911/911]/usr/sbin/setenforce:  setenforce() failed
Only root can do that.
/usr/sbin/setenforce:  setenforce() failed

Needless to say, I am root. The machine is selinux=Permissive. 
Rebooting for selinux=Disabled I get: 

Installing: setroubleshoot               ##################### [911/911]Removing
password for user root.
passwd: Success

When doing a standard desktop with selinux=Permissive, I get:

Installing: setroubleshoot               #####################
[967/967]/sbin/restorecon reset /var/cache/yum/development context
system_u:object_r:tmp_t:s0->system_u:object_r:var_t:s0
/sbin/restorecon reset /var/cache/yum/development/cachecookie context
system_u:object_r:tmp_t:s0->system_u:object_r:var_t:s0
/sbin/restorecon reset /var/cache/yum/development/comps.xml.gz context
system_u:object_r:tmp_t:s0->system_u:object_r:var_t:s0
/sbin/restorecon reset /var/cache/yum/development/packages context
system_u:object_r:tmp_t:s0->system_u:object_r:var_t:s0
...
tons of lines of restorecon
...
Removing password for user root.
passwd: Success

Does some selinux policy need to change to allow Xfce live cd's to be created?
Or am I doing something dumb? :)

Comment 1 Jeremy Katz 2008-04-14 22:50:31 UTC
The restorecons are normal...  the bit about only root being able to do
setenforce is very odd.  Dan -- any thoughts?

Comment 2 Daniel Walsh 2008-04-15 13:47:41 UTC
I have no idea why anyone would be calling setenforce or why it would fail.

Comment 3 Kevin Fenzi 2008-04-15 19:09:48 UTC
Looks like pilot error. ;( 

The .ks file I was using had a 'selinux --disabled' in it. 
That caused all kinds of problems. 

Closing this now. Sorry to bother...