「setenforce(8)」-

修改SELinux运行的模式

命令语法格式

setenforce [Enforcing|Permissive|1|0]

命令描述

使用Enforcing或者1来将SELinux设置为enforcing模式。
使用Permissive或者0来将SELinux设置为permissive模式。

如果SELinux被禁用并且您想要启用它,或者启用了SELinux并且您想要禁用它,请参阅selinux(8)。

相关手册

selinux(8), getenforce(8), selinuxenabled(8)

参考文献

  • man 8 setenforce, Version 2.8-1+b1

更新日志

  • 10/17/2018 创建文章