且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

管理布尔值

更新时间:2022-09-17 17:58:53


  1. [root@server76 test]# getsebool -a查看所有
  2. abrt_anon_write --> off 
  3. abrt_handle_event --> off 
  4. allow_console_login --> on 
  5. allow_cvs_read_shadow --> off 

 


  1. [root@server76 test]# setsebool httpd_enable_homedirs on 
  2. [root@server76 test]# semanage boolean -l |grep httpd_enable_homedirs 
  3. httpd_enable_homedirs          (on   ,  off)  Allow httpd to read home directories 

 


  1. [root@server76 test]# setsebool  -P httpd_enable_homedirs on 

 


  1. [root@server76 test]# semanage boolean -l |grep httpd_enable_homedirs 
  2. httpd_enable_homedirs          (on   ,   on)  Allow httpd to read home directories 

 


本文转自 369蓝宝 51CTO博客,原文链接:http://blog.51cto.com/3739387/1130108,如需转载请自行联系原作者