{"id":195542,"date":"2020-07-18T10:19:26","date_gmt":"2020-07-18T02:19:26","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=195542"},"modified":"2020-07-06T09:21:39","modified_gmt":"2020-07-06T01:21:39","slug":"disable-selinux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/disable-selinux.html","title":{"rendered":"SELinux\u5982\u4f55\u6c38\u4e45\u7981\u7528"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4f5c\u4e3aLinux\u5b89\u5168\u6a21\u5757(LSM)\u6846\u67b6\u7684\u4e00\u90e8\u5206\u5b9e\u73b0\uff0c\u8be5\u6846\u67b6\u53ef\u8bc6\u522b\u5404\u79cd\u5185\u6838\u5bf9\u8c61\u4ee5\u53ca\u5bf9\u8fd9\u4e9b\u5bf9\u8c61\u6267\u884c\u7684\u654f\u611f\u64cd\u4f5c\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u68c0\u67e5SELinux\u72b6\u6001\u7684\u6b65\u9aa4\uff0c\u5e76\u5b66\u4e60\u5982\u4f55\u5728CentOS\u6216RHEL\u6216Fedora\u7cfb\u7edf\u4e2d\u6765\u7981\u7528SELinux\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1. \u524d\u8a00<\/strong><\/div>\n \u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u5982\u4f55\u4e34\u65f6\u6216\u6c38\u4e45\u5730\u7981\u7528SELinux\u3002<\/p>\n <\/p>\n Linux\u88ab\u8ba4\u4e3a\u662f\u5f53\u4eca\u6700\u5b89\u5168\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u4e00\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u6770\u51fa\u7684\u5b89\u5168\u7279\u6027\uff0c\u5982SELinux(\u5b89\u5168\u589e\u5f3a\u7684Linux)\u3002<\/p>\n \u5bf9\u4e8e\u521d\u5b66\u8005\uff0cSELinux\u88ab\u63cf\u8ff0\u4e3a\u5728\u5185\u6838\u4e2d\u6267\u884c\u7684\u5f3a\u5236\u8bbf\u95ee\u63a7\u5236(MAC)\u5b89\u5168\u7ed3\u6784\u3002SELinux\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5236\u6267\u884c\u67d0\u4e9b\u5b89\u5168\u7b56\u7565\u7684\u65b9\u6cd5\uff0c\u5426\u5219\u7cfb\u7edf\u7ba1\u7406\u5458\u5c06\u65e0\u6cd5\u6709\u6548\u5730\u5b9e\u73b0\u8fd9\u4e9b\u7b56\u7565\u3002<\/p>\n \u5f53\u60a8\u5b89\u88c5RHEL\/CentOS\u6216\u5176\u4ed6\u884d\u751f\u5de5\u5177\u65f6\uff0cSELinux\u670d\u52a1\u662f\u9ed8\u8ba4\u542f\u7528\u7684\uff0c\u56e0\u6b64\u60a8\u7cfb\u7edf\u4e0a\u7684\u4e00\u4e9b\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u4e0d\u652f\u6301\u8fd9\u79cd\u5b89\u5168\u673a\u5236\u3002\u56e0\u6b64\uff0c\u8981\u4f7f\u6b64\u7c7b\u5e94\u7528\u7a0b\u5e8f\u6b63\u5e38\u8fd0\u884c\uff0c\u5fc5\u987b\u7981\u7528\u6216\u5173\u95edSELinux\u3002<\/p>\n \u91cd\u8981\u63d0\u793a:\u5982\u679c\u60a8\u4e0d\u60f3\u7981\u7528SELinux\uff0c\u90a3\u4e48\u60a8\u5e94\u8be5\u9605\u8bfb\u4ee5\u4e0b\u5185\u5bb9\uff0c\u4ee5\u5b9e\u73b0\u5bf9\u6587\u4ef6\u548c\u670d\u52a1\u7684\u5f3a\u5236\u6027\u8bbf\u95ee\u63a7\u5236\uff0c\u4ee5\u4f7f\u5176\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n \u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u68c0\u67e5SELinux\u72b6\u6001\u7684\u6b65\u9aa4\uff0c\u5e76\u5728CentOS \u6216 RHEL\u6216Fedora\u4e2d\u7981\u7528SELinux\u3002<\/p>\n \u9996\u5148\u8981\u505a\u7684\u662f\u68c0\u67e5\u7cfb\u7edf\u4e0aSELinux\u7684\u72b6\u6001\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b8c\u6210\uff1a<\/p>\n sestatus\r\n<\/pre>\n |