SELinux status의 상태가 enabled(활성화), disabled(비활성화)를 확인한다.
[$shell@search] sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 31 [$shell@search] getenforce Enforcing
setenforce 0 : 끄기 , setenforce 1 : 켜기
[$shell@search] getenforce Enforcing [$shell@search] setenforce 0 [$shell@search] getenforce Permissive