1008 B
1008 B
RHCSA 10.4: SELinux modes
Switching to permissive mode for now, and booting in permissive mode and back.
Before you start
SELinux must be enforcing when you start. The tasks end where they
started, so the lab runs a small service, le-lab-watch, that notes the
SELinux mode and the SELINUX= setting every second (and at every boot)
for the check. Wait a few seconds between steps. Reset sets SELinux back
to enforcing.
Tasks
- Put SELinux into permissive mode until the next reboot, and make sure
enforcing mode is the setting at boot:
getenforceprintsPermissiveandsestatusshowsMode from config file: enforcing. After a reboot,getenforceprintsEnforcing. - Make the system boot in permissive mode and reboot:
getenforceprintsPermissive. Then put it back to enforcing for good (SELINUX=enforcingand a reboot, orsetenforce 1as well).
Hints
setenforce 0,getenforce,sestatus.SELINUX=in/etc/selinux/config;setenforce 1.