CentOS / RHEL: Disable or Enable SELinux Policy Modules
In CentOS or Red Hat Enterprise Linux (RHEL), you can disable or enable SELinux policy modules using the setsebool command.
Here's how to disable a SELinux policy module:
- Determine the name of the SELinux policy module you want to disable. You can use the following command to list all the available SELinux policy modules:
semodule -l - Use the following command to disable the SELinux policy module:
setsebool -P <module_name> offReplace
<module_name>with the actual name of the SELinux policy module you want to disable.
- Determine the name of the SELinux policy module you want to enable. You can use the following command to list all the available SELinux policy modules:
semodule -l - Use the following command to enable the SELinux policy module:
setsebool -P <module_name> onReplace
<module_name>with the actual name of the SELinux policy module you want to enable.
