973 B
973 B
RHCSA 10.7: SELinux booleans
A boolean turned on for good, and one turned on only until the next boot.
Before you start
SELinux must be enforcing. The lab installs policycoreutils-python-utils
(for semanage) and turns httpd_can_network_connect and
httpd_enable_homedirs off, persistently. Task 2 ends where it started, so
the lab runs a small service, le-lab-watch, that notes
httpd_enable_homedirs every second (and at every boot) for the check.
Reset turns both booleans off again.
Tasks
- Let web servers make outgoing network connections, persistently: after
a reboot,
getsebool httpd_can_network_connectprints--> on. - Turn
httpd_enable_homedirson without-P:semanage boolean -lshows it(on , off). Reboot:getsebool httpd_enable_homedirsprints--> off.
Hints
getsebool -a | grep httpd,semanage boolean -l | grep httpd;setsebool -P.setseboolwithout-Pchanges only the running system.