You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
921 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

seinfo
===
查询SELinux的策略提供多少相关规则
## 说明
**seinfo命令** 是用来查询SELinux的策略提供多少相关规则一个主体进程能否读取到目标文件资源的重点是在于SELinux的策略以及策略内的各项规则然后再通过该规则的定义去处理各项目标文件的安全上下文尤其是“类型”部分。SELinux的策略与规则管理相关命令seinfo命令、sesearch命令、getsebool命令、setsebool命令、semanage命令
## 选项
```
seinfo选项
```
```
-A列出SELinux的状态、规则布尔值、身份识别、角色、类型等所有信息
-t列出SELinux所有类型(type)的种类
-r列出SELinux所有角色(role)的种类
-u列出SELinux所有身份识别(user)的种类
-b列出所有规则的种类布尔值
```
## 实例
列出与httpd有关的规则
```
seinfo -b | grep httpd
```