{"id":8476,"date":"2020-08-28T12:58:39","date_gmt":"2020-08-28T04:58:39","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8476"},"modified":"2020-08-28T12:58:39","modified_gmt":"2020-08-28T04:58:39","slug":"sestatus","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sestatus","title":{"rendered":"sestatus\u547d\u4ee4 – \u663e\u793aSELinux\u72b6\u6001"},"content":{"rendered":"\n

sestatus\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u67e5\u770b\u7cfb\u7edf\u8fd0\u884cSELinux\u7684\u72b6\u6001\uff0c\u5e94\u7528\u6a21\u5f0f\u3001\u5e03\u5c14\u503c\uff0c\u4ee5\u53ca\u663e\u793a\/etc\/sestatus.conf\u6587\u4ef6\u5185\u5217\u51fa\u7684\u6587\u4ef6\u548c\u8fdb\u7a0b\u7684\u5b89\u5168\u4e0a\u4e0b\u6587\u3002<\/p>\n\n\n\n

SELinux\u5168\u79f0\u662fSecurity Enhanced Linux (\u5b89\u5168\u5f3a\u5316 Linux)\uff0c\u662f MAC (Mandatory Access Control\uff0c\u5f3a\u5236\u8bbf\u95ee\u63a7\u5236\u7cfb\u7edf)\u7684\u4e00\u4e2a\u5b9e\u73b0\uff0c\u5df2\u5728linux\u5185\u6838\u4e2d\u5b58\u5728\u4e86\u8bb8\u591a\u5e74\uff0c\u5bf9\u4e8e\u76ee\u524d\u53ef\u7528\u7684linux\u5b89\u5168\u6a21\u5757\u6765\u8bf4\uff0cSELinux\u529f\u80fd\u6700\u5168\u9762\uff0c\u6d4b\u8bd5\u6700\u5145\u5206\uff0c\u662flinux\u5185\u6838\u7684\u5b89\u5168\u4fdd\u9556\u3002<\/p>\n\n\n\n

SELinux\u4e3b\u8981\u4f5c\u7528\u5c31\u662f\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c0f\u7cfb\u7edf\u4e2d\u670d\u52a1\u8fdb\u7a0b\u53ef\u8bbf\u95ee\u7684\u8d44\u6e90\uff08\u6700\u5c0f\u6743\u9650\u539f\u5219\uff09\u3002<\/p>\n\n\n\n

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

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

-v<\/td>\u8be6\u7ec6\u68c0\u67e5\u8fdb\u7a0b\u548c\u6587\u4ef6\u7684\u5b89\u5168\u4e0a\u4e0b\u6587<\/td><\/tr>
-b<\/td>\u663e\u793a\u5f53\u524d\u5e03\u5c14\u503c\u72b6\u6001<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u67e5\u770b\u5f53\u524dSELinux\u7684\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sestatus<\/pre>\n\n\n\n

\u8be6\u7ec6\u68c0\u67e5\u8fdb\u7a0b\u548c\u6587\u4ef6\u7684\u5b89\u5168\u4e0a\u4e0b\u6587\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sestatus -v<\/pre>\n\n\n\n

\u663e\u793a\u5f53\u524d\u5e03\u5c14\u503c\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sestatus -b<\/pre>\n","protected":false},"excerpt":{"rendered":"

sestatus\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u67e5\u770b\u7cfb\u7edf\u8fd0\u884cSELinux\u7684\u72b6\u6001\uff0c\u5e94\u7528\u6a21\u5f0f\u3001\u5e03\u5c14\u503c\uff0c\u4ee5\u53ca\u663e\u793a\/etc\/sest […]<\/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\/8476"}],"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=8476"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8476\/revisions"}],"predecessor-version":[{"id":8496,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8476\/revisions\/8496"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}