详解getsebool命令使用方法
getsebool命令是用来查询SElinux策略内各项规则的布尔值,下面为大家分享一下getsebool命令使用方法。
语法
getsebool [-a] [布尔值条款]
选项
-a:列出目前系统上面的所有布尔值条款设置为开启或关闭值。
实例
查询本系统内所有的布尔值设置状况:
getsebool -a
NetworkManager_disable_trans --> off
allow_console_login --> off
allow_cvs_read_shadow --> off
allow_daemons_dump_core --> on
....(底下省略)....
查询httpd_enable_homedirs是否为关闭,若没关闭,请关闭它:
getsebool httpd_enable_homedirs setsebool -P httpd_enable_homedirs=0 //0是关闭 1是开启
版权声明:
作者:后浪云
链接:https://www.idc.net/help/20996/
文章版权归作者所有,未经允许请勿转载。
THE END