Bug 640543 - Selinux cannot be set to enforcing.
Summary: Selinux cannot be set to enforcing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-06 10:06 UTC by Frank Murphy
Modified: 2010-10-27 22:55 UTC (History)
5 users (show)

Fixed In Version: dracut-005-5.fc13
Clone Of:
Environment:
Last Closed: 2010-10-27 22:55:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Setrouble screencap (22.91 KB, image/png)
2010-10-06 10:06 UTC, Frank Murphy
no flags Details
dmesg (35.50 KB, text/plain)
2010-10-06 13:27 UTC, Frank Murphy
no flags Details
boot log (3.30 KB, text/plain)
2010-10-07 14:25 UTC, Frank Murphy
no flags Details
New dmesg (37.75 KB, text/plain)
2010-10-07 21:09 UTC, Frank Murphy
no flags Details

Description Frank Murphy 2010-10-06 10:06:20 UTC
Created attachment 451852 [details]
Setrouble screencap

Description of problem: Selinux is disabled


Version-Release number of selected component (if applicable):
rpm -qa setrouble\*
setroubleshoot-2.2.99-1.fc13.x86_64
setroubleshoot-plugins-2.1.61-1.fc13.noarch
setroubleshoot-server-2.2.99-1.fc13.x86_64


How reproducible: Same on my bare metal and two KVM F13's


Steps to Reproduce:
1. No idea what caused it.

  
Actual results: Disabled, with no method to change to enforcing.


Expected results: Enforcing


Additional info:

Comment 1 Daniel Walsh 2010-10-06 12:57:17 UTC
This is showing you the current mode of the system.  The only way to change it is to reboot the machine.

Comment 2 Frank Murphy 2010-10-06 13:18:45 UTC
Reboots haven't helped, it syays on disabled.
the F14's don't have any greyed out out section.

Comment 3 Frank Murphy 2010-10-06 13:27:49 UTC
Created attachment 451892 [details]
dmesg

After another reboot  it looks like there is no "dracut:selinux line"

rpm -q kernel-debug
kernel-debug-2.6.34.7-56.fc13.x86_64
kernel-debug-2.6.34.7-58.fc13.x86_64
kernel-debug-2.6.34.7-59.fc13.x86_64

Comment 4 Daniel Walsh 2010-10-06 14:15:20 UTC
First lets try to reinstall selinux-policy-targeted

# yum reinstall selinux-policy-targeted

Do you see any errors?

If you execute 

# load_policy

Do you see any errors?

Comment 5 Frank Murphy 2010-10-06 14:47:31 UTC
(In reply to comment #4)
> First lets try to reinstall selinux-policy-targeted
> 
> # yum reinstall selinux-policy-targeted
> 
> Do you see any errors?

No

> 
> If you execute 
> 
> # load_policy
> 
> Do you see any errors?

yes:

load_policy
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.24, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.24:  No such file or directory
load_policy:  Can't load policy file /etc/selinux/targeted/policy/policy.-1:  No such file or directory


rpm -qa selinux-policy\*
selinux-policy-targeted-3.7.19-64.fc13.noarch
selinux-policy-doc-3.7.19-64.fc13.noarch
selinux-policy-3.7.19-64.fc13.noarch

Comment 6 Daniel Walsh 2010-10-06 17:07:41 UTC
What happens if you reboot now?

Comment 7 Frank Murphy 2010-10-06 17:46:09 UTC
Sill disabled 2 reboots on this box.
Will start downgrade selinux\* to see if I find where it started.

Comment 8 Frank Murphy 2010-10-06 21:47:31 UTC
Downgrading to:
selinux-policy-doc-3.7.19-62.fc13.noarch
selinux-policy-3.7.19-62.fc13.noarch
selinux-policy-targeted-3.7.19-62.fc13.noarch

has fixed the disabled\greyed out problem.
sealert will also now open a gui.

Which could mean a problem with: selinux-policy-3.7.19-64.fc13 ?

Comment 9 Miroslav Grepl 2010-10-07 07:34:25 UTC
Frank,
if you now upgrade back to -64 release, is the problem back again?

Comment 10 Frank Murphy 2010-10-07 07:47:37 UTC
(In reply to comment #9)
> Frank,
> if you now upgrade back to -64 release, is the problem back again?

Just done. 
problem back. No reboot involved.
Just update and disabled.

Comment 11 Frank Murphy 2010-10-07 08:14:06 UTC
More:

After reboot still disabled.
But can be made go enforcing by running:
su -
load_policy -qi

So -64 appears not to autoload policy?

Comment 12 Miroslav Grepl 2010-10-07 11:27:33 UTC
So you ran

load_policy -qi

and now it works fine.

Comment 13 Frank Murphy 2010-10-07 11:41:33 UTC
(In reply to comment #12)
> So you ran
> 
> load_policy -qi
> 
> and now it works fine.

Until the next reboot

reboot == start disabled

Comment 14 Daniel Walsh 2010-10-07 12:33:45 UTC
Are you running the latest F13 kernel?  Do you see any errors about loading policy in the boot logs?

Comment 15 Frank Murphy 2010-10-07 14:25:27 UTC
Created attachment 452112 [details]
boot log

No errors latest kernel-debug to test

Comment 16 Eric Paris 2010-10-07 14:56:10 UTC
I'm guessing you are running dracut -055-4 (I also assume you are using updates-testing?)

update to dracut-005-5.fc13 and rebuild all of your initrd (I don't know the dracut magic)

Comment 17 Harald Hoyer 2010-10-07 16:16:25 UTC
(In reply to comment #16)
> update to dracut-005-5.fc13 and rebuild all of your initrd (I don't know the
> dracut magic)

http://people.redhat.com/harald/dracut.html#id330426

Comment 18 Frank Murphy 2010-10-07 17:58:33 UTC
(In reply to comment #16)
> I'm guessing you are running dracut -055-4 (I also assume you are using
> updates-testing?)

Yes and yes

> 
> update to dracut-005-5.fc13 and rebuild all of your initrd (I don't know the
> dracut magic)


will do

Comment 19 Frank Murphy 2010-10-07 18:43:25 UTC
dracut-005-5.fc13 fixed it.

Just yum localinstall dracut-005-5.fc13, and reboot.

No need to manually recreate anything.

Comment 20 Harald Hoyer 2010-10-07 19:29:29 UTC
(In reply to comment #19)
> dracut-005-5.fc13 fixed it.
> 
> Just yum localinstall dracut-005-5.fc13, and reboot.
> 
> No need to manually recreate anything.

impossible

Comment 21 Frank Murphy 2010-10-07 21:09:18 UTC
Created attachment 452199 [details]
New dmesg

But is that not normally happens with a new dracut?
just reboot, anyhow it's now loading selinux
Attached new dmesg for comparison

I did nothing extra.

Comment 22 Frank Murphy 2010-10-08 05:56:16 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > dracut-005-5.fc13 fixed it.
> > 
> > Just yum localinstall dracut-005-5.fc13, and reboot.
> > 
> > No need to manually recreate anything.
> 
> impossible

Where's the embarrassed smiley thing.

yum reinstall kernel

Comment 23 Harald Hoyer 2010-10-08 10:04:05 UTC
(In reply to comment #22)
> (In reply to comment #20)
> > (In reply to comment #19)
> > > dracut-005-5.fc13 fixed it.
> > > 
> > > Just yum localinstall dracut-005-5.fc13, and reboot.
> > > 
> > > No need to manually recreate anything.
> > 
> > impossible
> 
> Where's the embarrassed smiley thing.
> 
> yum reinstall kernel

that does the trick :)

so, issue fixed?

Comment 24 Fedora Update System 2010-10-08 10:07:04 UTC
dracut-005-5.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/dracut-005-5.fc13

Comment 25 Fedora Update System 2010-10-08 20:49:45 UTC
dracut-005-5.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/dracut-005-5.fc13

Comment 26 Fedora Update System 2010-10-27 22:54:24 UTC
dracut-005-5.fc13 has been pushed to the Fedora 13 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.