Fun with Red Hat: Disabling SELinux temporarily

Posted by

I’ll admit it freely: I’m a Debian guy. That said, I recognize that Red Hat Enterprise Linux has it’s place. I run it on a few servers here and there and it is a rock. One frequent sore point for me, however, is SELinux.

While recently migrating a bunch of VMs, the one RHEL-based VM started having a fit on reboot. I’m not sure what caused the problem but the solution (as usual) was to stop SELinux (at least temporarily.)

From this extremely helpful resource, I found the “fix.” Add the following to Grub’s boot option:


I also removed quiet and added single to boot into single user mode. At this point, you can edit /etc/selinux/config and modify SELINUX as desired:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.


GoSaBe Blog - Jan 28, 2015 | Linux, Virtualization