Enforcing mode requested but no policy loaded. Halting now.

Here's a pretty weird kernel panic that I came across the other day:

Enforcing mode requested but no policy loaded. Halting now.
Kernel panic - not syncing: Attempted to kill init!

This usually means that you've set SELINUX in enforcing mode within /etc/sysconfig/selinux or /etc/selinux/selinux.conf but you don't have the appropriate SELINUX packages installed. To fix the issue, boot the server into the Red Hat rescue environment and disable SELINUX until you can install the proper packages that contain the SELINUX targeted configuration.

This kernel panic appeared on a Red Hat Enterprise Linux 4 Update 5 server.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/10/17/enforcing-mode-requested-but-no-policy-loaded-halting-now/ .
© Major Hayden 2010.

3 Comments   »

  • sai says:

    If you have serial console or KVM to the box, you can pass selinux=0 in the boot param if you don't want to boot up into rescue system.

    Ref:
    http://danwalsh.livejournal.com/3144.html

    Sai

  • teccyspice says:

    I've just had this problem recovering a clients RHEL 4 system from a backup.

    I didn't think they would want SELinux disabled on their O/S so i dig about in the startup scripts and noticed that it referenced files in the /selinux directory which seemed to be a selinuxfs filesystem type, this was not backed up and I'm guessing because it showed up as a mounted filesystem was excluded from the backup.

    When I restored their / directory, the /selinux directory was not recreated, recreating the /selinux directory (just by doing `mkdir /selinux`) and rebooting fixed the problem and left SELinux enabled on their server.

  • juan carlos munoz says:

    it works!!! JUST FINEEEEEEE for me!!! thanks

RSS feed for comments on this post , TrackBack URI

Leave a Reply