可能返回结果有三种:Enforcing、Permissive 和 Disabled。
Disabled 代表 SELinux 被禁用,Permissive 代表仅记录安全警告但不阻止可疑行为,Enforcing 代表记录警告且阻止可疑行为。
目前常见发行版中,RHEL 和 REDHAT 默认设置为 Enforcing,其余的如 openSUSE 等为 Permissive。
setenforce [ Enforcing | Permissive | 1 | 0 ]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30146442/viewspace-2089085/ ,如需转载,请注明出处,否则将追究法律责任。