selinux 相关的几个命令

1. setenforce (1|0|enforcing|permissive), only when selinux is not disabled

2. getenforce

3. selinuxenabled (exit code 1 represents selinux is disabled)

4. sestatus

5. setsebool | getsebool

6. man -k selinux,  to see more selinux related commands

你可能感兴趣的:(selinux,相关命令)