{"id":1189,"date":"2020-09-08T21:09:27","date_gmt":"2020-09-08T13:09:27","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=1189"},"modified":"2025-04-01T16:27:31","modified_gmt":"2025-04-01T07:27:31","slug":"ukk52bnjsmdryrj","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2020\/09\/08\/ukk52bnjsmdryrj\/","title":{"rendered":"getenforce \u62a5\u9519-bash\uff1agetenforce\uff1acommand not found"},"content":{"rendered":"<p>getenforce\u662f\u67e5\u770bselinux\u72b6\u6001\u7684\u6307\u4ee4<br \/>\n# rpm -qf `which getenforce`<br \/>\nlibselinux-utils-2.0.94-5.3.el6.x86_64 \/\/getenforce\u8fd9\u4e2a\u547d\u4ee4\u662f\u7531libselinux-utils-2.0.94-5.3.el6.x86_64\u8fd9\u4e2a\u8f6f\u4ef6\u5305\u63d0\u4f9b\u7684<br \/>\n\u4f60\u786e\u8ba4\u4e00\u4e0b\u7cfb\u7edf\u662f\u5426\u5b89\u88c5\u4e86selinux<br \/>\n\u8ffd\u95ee<br \/>\n\u6211\u8f93\u5165# rpm -qa selinux \u540e\u6ca1\u6709\u53cd\u5e94\u662f\u4e0d\u662f\u610f\u5473\u7740\u6ca1\u6709\u5b89\u88c5<br \/>\n\u8ffd\u7b54<br \/>\n# rpm -qa|grep selinux<br \/>\nlibselinux-utils-2.0.94-5.2.el6.x86_64<br \/>\nselinux-policy-3.7.19-54.el6.noarch<br \/>\nselinux-policy-targeted-3.7.19-54.el6.noarch<br \/>\nlibselinux-python-2.0.94-5.2.el6.x86_64<br \/>\nlibselinux-devel-2.0.94-5.2.el6.x86_64<br \/>\nlibselinux-2.0.94-5.2.el6.x86_64<br \/>\n\u8fd9\u662f\u6709\u5b89\u88c5\u7684\u53cd\u5e94\u3002\u6ca1\u53cd\u5e94\u8bf4\u660e\u6ca1\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>getenforce\u662f\u67e5\u770bselinux\u72b6\u6001\u7684\u6307\u4ee4 # rpm -qf `which getenforce` libselinux-utils-2.0.94-5.3.el6.x86_64 \/\/getenforce\u8fd9\u4e2a\u547d\u4ee4\u662f\u7531libselinux-utils-2.0.94-5.3.el6.x86_64\u8fd9\u4e2a\u8f6f\u4ef6\u5305\u63d0\u4f9b\u7684 \u4f60\u786e\u8ba4\u4e00\u4e0b\u7cfb\u7edf\u662f\u5426\u5b89\u88c5\u4e86selinux \u8ffd\u95ee \u6211\u8f93\u5165# rpm -qa selinux \u540e\u6ca1\u6709\u53cd\u5e94\u662f\u4e0d\u662f\u610f\u5473\u7740\u6ca1\u6709\u5b89\u88c5 \u8ffd\u7b54 # rpm -qa|grep selinux libselinux-utils-2.0.94-5.2.el6.x86_64 selinux-policy-3.7.19-54.el6.noarch selinux-policy-targeted-3.7.19-54.el6.noarch libselinux-python-2.0.94-5.2.el6.x86_64 libselinux-devel-2.0.94-5.2.el6.x86_64 libselinux-2.0.94-5.2.el6.x86_64 \u8fd9\u662f\u6709\u5b89\u88c5\u7684\u53cd\u5e94\u3002\u6ca1\u53cd\u5e94\u8bf4\u660e\u6ca1\u5b89\u88c5\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1189","post","type-post","status-publish","format-standard","hentry","category-b7fum8vqsuspg2y"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=1189"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1189\/revisions"}],"predecessor-version":[{"id":2151,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1189\/revisions\/2151"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}