Total Pageviews

Friday, 5 December 2008

How to SELinux: could not open policy file <= /etc/selinux/targeted/policy/policy.23: Halting now.

Two days ago I had a problem when disabling SElinux, when i rebooted I had this Kernel panic!




Booting `Fedora (2.6.25-14.fc9.i686)´

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=64d8152d-508c-46ff-b8cd-9c2f4dc52510 rhgb quiet
[Linux-bzImage, setup=0x37d5d000, size=0x1fab60]
initrd /boot/initr-2.5.25-14.fc9.i686.img
[Linux-initrd @ 0x37d5d000, 0x292b6f bytes]


Decompressing Linux... done.
Booting the kernel.
Red Hat nash version 2.0.52 starting
SELinux: could not open policy file <= /etc/selinux/targeted/policy/policy.23: No such file or directory Unable to load SELinux policy (No such file of directory). Halting now.


The Solution was to boot the server, select an option from the boot screen press "e" add

Code:
selinux=0


Code i.e :
kernel /boot/vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=64d8152d-508c-46ff-b8cd-9c2f4dc52510 rhgb quiet selinux=0


Then Press "b"

1 comment:

Steven said...

THANK YOU!! Damn, you would think that this would have been easy info to find but I was freaking out all day yesterday. Saved my bacon!