SELinux

From Freephile Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

see


Turning Off SELinux

Temporarily turn off SELinux

echo 0 > /selinux/enforce

The file itself will be empty, but you'll see something in /var/log/messages

dbus: avc:  received setenforce notice (enforcing=0)

Of course you can also turn it back on with "1" instead of "0".

This temporary change will not persist through a system reboot. You need to modify /etc/selinux/config to make permanent changes.

Annoyingly, if you check to see if selinux is enabled, it reports "enabled" even when it's temporarily disabled!?

selinuxenabled && echo enabled || echo disabled