# Rocky Linux 9.4 won't boot due to Corrupted SELinux policies help

**URL:** <https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [August 15, 2024, 4:29am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462 "2024-08-15T04:29:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevejjd](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@stevejjd](https://forums.rockylinux.org/u/stevejjd)\
**Post date:** [August 15, 2024, 4:29am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/1 "2024-08-15T04:29:57Z")

</div>

Hi all,  
Me again.

I opened /etc/selinux/config and change it to SELINUX=permissive. After I reboot, I get an error “Failed to load SELinux policy, freezing.”

I tried to follow help articles but my GRUB menu looks completely different.  
[http://blog.aristadba.com/2021/03/failed-to-load-selinux-policy-freezingsolved/](http://blog.aristadba.com/2021/03/failed-to-load-selinux-policy-freezingsolved/)

What are the instructions for Rocky Linux 9.4 with GRUB

---

<div class="post-metadata">

**Author:** ![stevejjd](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@stevejjd](https://forums.rockylinux.org/u/stevejjd)\
**Post date:** [August 15, 2024, 4:31am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/2 "2024-08-15T04:31:09Z")

</div>

![IMG_4097](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/b/b19cb2715cf50793e682bce0c53c977eba8ed5fb.jpeg)  
 ![IMG_4098](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/6/6dc00be973777caf69c9c4d3cd54418f41667e6c.jpeg)  
 ![IMG_4095](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/d/dea3d3b8d18298c8df4a1a9ccefc63607e3ea894.jpeg)  
 ![IMG_4096](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/5/5ce33d95dbbedae0cf460c9310d9c5eef3831dca.jpeg)

Here are some pictures to illustrate my problem. I would appreciate any help to fix it.

---

<div class="post-metadata">

**Author:** ![stevejjd](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@stevejjd](https://forums.rockylinux.org/u/stevejjd)\
**Post date:** [August 15, 2024, 4:35am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/3 "2024-08-15T04:35:16Z")

</div>

- How to reset it to default?
- Can we set SELINUX=disabled and still be able to boot into Linux?
- Could one way to fix it be to boot into a bootable USB of Ubuntu and edit the file from there and then boot back into Rocky Linux as normal?

Thanks

---

<div class="post-metadata">

**Author:** ![stevejjd](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@stevejjd](https://forums.rockylinux.org/u/stevejjd)\
**Post date:** [August 15, 2024, 5:10am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/4 "2024-08-15T05:10:54Z")

</div>

I booted into a Rocky Linux 9.4 USB and entered Rescue Environment. I press option 1 and then saw a message;

“Your system has been mounted under /mnt/sysroot.  
If you would like to make the root of your system the root of the active system, run the command:  
chroot /mnt/sysroot”

- I access system by running the command chroot /mnt/sysroot
- To disable SELinux temporarily: setenforce 0
- To revert the SELinux configuration: nano /etc/selinux/config
- I changed the line to targeted
- sudo reboot

It tried to boot but ran into an issue where it needed to autorelabel something

It reboot again and worked

---

<div class="post-metadata">

**Author:** ![hs303](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hs303](https://forums.rockylinux.org/u/hs303)\
**Post date:** [August 15, 2024, 7:51am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/5 "2024-08-15T07:51:22Z")

</div>

Next time you can try to press `e` while in the boot menu and add the following parameter `selinux=0`. It should disable `selinux` for the current boot only.  
If this should not work, you can add the kernel parameter `init=/bin/bash` to spawn a shell, instead of booting the whole system.  
If you use this rescue methods to change files, you need to create an empty file called `.autorelabel` within the `/ ` directory for `selinux` to appropriately label the files you have changed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 14, 2024, 7:52am UTC](https://forums.rockylinux.org/t/rocky-linux-9-4-wont-boot-due-to-corrupted-selinux-policies-help/15462/6 "2024-10-14T07:52:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
