SELinux can be any one of the following mode at any given time:
- enforcing : SELinux security policy is enforced.
- permissive : SELinux prints warnings instead of enforcing.
- disabled : SELinux is fully disabled.
Temporarily switch off SELinux enforcement
Type the following command as root user:# echo 0 >/selinux/enforce
Type the following command to see current status, enter:
# sestatus
Sample outputs:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
Temporarily switch on SELinux enforcement
Type the following command as root user:# echo 1 >/selinux/enforce
Type the following command to see current status, enter:
# sestatus
Sample outputs:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
No comments:
Post a Comment