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.

22 lines
642 B

5 years ago
# **getsebool**
7 years ago
6 years ago
## 说明
7 years ago
**getsebool命令** 是用来查询SElinux策略内各项规则的布尔值。SELinux的策略与规则管理相关命令seinfo命令、sesearch命令、getsebool命令、setsebool命令、semanage命令。
5 years ago
## 选项
7 years ago
5 years ago
```markdown
getsebool [-a] [布尔值条款] -a列出目前系统上面的所有布尔值条款设置为开启或关闭值。
7 years ago
```
5 years ago
## 实例
7 years ago
5 years ago
```bash
getsebool -a # 查询本系统内所有的布尔值设置
7 years ago
5 years ago
# 查询httpd_enable_homedirs是否为关闭若没关闭请关闭它
7 years ago
getsebool httpd_enable_homedirs
5 years ago
setsebool -P httpd_enable_homedirs=0 # 0是关闭 1是开启
7 years ago
```