Articles :: View

How to control SELinux

Users who prefer the command line may use the 'sestatus' command to view the current SELinux status:


# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted
The 'setenforce' command may be used to switch between Enforcing and Permissive modes on the fly but note that these changes do not persist through a system reboot.

To make changes persistent through a system reboot, edit the 'SELINUX=' line in  /etc/selinux/config  for either 'enforcing', 'permissive', or 'disabled'. For example: 'SELINUX=permissive'


Comments

Add a comment!

    • #687 2017-08-11 12:57:32 reply
      advanced system care 5 serial https://ya.ru
    • #689 2017-08-29 18:10:07 reply
    • #690 2017-08-30 00:07:01 reply