You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: System Fails to Boot with Error “Failed to load SELinux policy, freezing”

Applies To:

Oracle Cloud Infrastructure

Linux x86-64

Symptoms:

When booting the system with selinux enabled, the process fails and freezes with following messages

 [   12.508664] systemd[1]: Failed to load SELinux policy.
[!!!!!!] Failed to load SELinux policy, freezing.
[   12.512968] systemd[1]: Freezing execution.

At this stage, the system does not proceed to normal login.

Cause:


The failure occurs because the selinux binary policy file, typically located at /etc/selinux/targeted/policy/policy.31 is missing or corrupted.

# ls -l /etc/selinux/targeted/policy
total 0

Without this file, systemd cannot load a valid policy during initialization, which forces the system into a frozen state.

Solution:


To resolve this issue, restore the contents of

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!