管理布爾值

  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 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章