Showing posts with label selinux. Show all posts
Showing posts with label selinux. Show all posts

Monday, April 22, 2024

Rocky 9 : Permanently Disable SELinux

1.Check the Linux OS and Kernel versions
# cat /etc/rocky-release
# uname -r

2.Verify SELinux status.SELinux by default runs in Enforcing mode
# sestatus

3.To disable SELinux grubby command is required
#dnf install -y grubby

4.Execute following command to permanently disable SELinux.
#grubby --update-kernel ALL --args selinux=0

5.Reboot the server
# reboot

6.Verify SELinux status
# sestatus

 

source : https://centlinux.com/permanently-disable-selinux/

Wednesday, June 10, 2009

Kernel Panic - SELinux Enabled

"unable to load selinux policy. machine is in enforcing mode. halting now" kernel panic.

To resolve :

1. Would it not be quicker, at the grub boot menu to 'e'dit the boot line to append 'enforcing=0'.

2. Then once the system is up, either edit /etc/grub.conf to include the appending, or edit /etc/sysconfig/selinux and set it to disabled.

Source : http://realtechtalk.com/Kernel_panic_not_syncing_Attempted_to_kill_init_Pid_1comm_init_Tained_GI2632358el6x86_64_1_Call_Trace_%5Bfffffff8150cfc8%5D_panic0xa00x16f_%5Bfffffff81073ae2%5D_do_exit0x8620x870_%5Bfffffff81182885%5D_fput0x250-1344-articles