{"id":5595,"date":"2019-11-25T18:10:03","date_gmt":"2019-11-25T10:10:03","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5595"},"modified":"2019-11-25T18:10:04","modified_gmt":"2019-11-25T10:10:04","slug":"setsebool","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setsebool","title":{"rendered":"setsebool\u547d\u4ee4 – \u4fee\u6539\u5e03\u5c14\u503c"},"content":{"rendered":"\n

setsebool\u547d\u4ee4\u662f\u7528\u6765\u4fee\u6539SElinux\u7b56\u7565\u5185\u5404\u9879\u89c4\u5219\u7684\u5e03\u5c14\u503c\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>setsebool [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong> <\/p>\n\n\n\n

-P<\/td>\u76f4\u63a5\u5c06\u8bbe\u7f6e\u503c\u5199\u5165\u914d\u7f6e\u6587\u4ef6\uff0c\u8be5\u8bbe\u7f6e\u6570\u636e\u5c06\u6765\u4f1a\u751f\u6548\u7684<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong> <\/p>\n\n\n\n

\u5141\u8bb8vsvtp\u533f\u540d\u7528\u6237\u5199\u5165\u6743\u9650\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setsebool -P allow_ftpd_anon_write=1 <\/pre>\n\n\n\n

HTTP\u88ab\u8bbe\u7f6e\u5141\u8bb8cgi\u7684\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setsebool -P httpd_enable_cgi 1 <\/pre>\n\n\n\n

Selinux\u5c06\u672c\u673a\u7684NFS\u5171\u4eab\u8bbe\u7f6e\u6210\u53ea\u8bfb\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# setsebool -P nfs_export_all_ro 1 <\/pre>\n","protected":false},"excerpt":{"rendered":"

setsebool\u547d\u4ee4\u662f\u7528\u6765\u4fee\u6539SElinux\u7b56\u7565\u5185\u5404\u9879\u89c4\u5219\u7684\u5e03\u5c14\u503c\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1asetsebool [\u53c2\u6570] […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5595"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5595"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"predecessor-version":[{"id":5650,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5595\/revisions\/5650"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}