{"id":96,"date":"2011-04-28T15:59:05","date_gmt":"2011-04-28T12:59:05","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=96"},"modified":"2011-04-28T15:59:05","modified_gmt":"2011-04-28T12:59:05","slug":"selinux-local-policy-creation","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=96","title":{"rendered":"SELINUX local policy creation"},"content":{"rendered":"<p>Run the command<\/p>\n<blockquote><p>audit2allow -m local -l > local.te < \/var\/log\/audit.log<\/p><\/blockquote>\n<p>This will generate a local.te file that will have the policy to allow the things denied int he current audit.log<\/p>\n<p>You\u2019ll want to review closely to see if those are in fact the things you want to allow.<\/p>\n<p>To turn this into a binary module you use this command:<\/p>\n<blockquote><p>checkmodule -M -m -o local.mod local1.te<\/p><\/blockquote>\n<p>To Create a policy that can be loaded into the kernel use this<\/p>\n<blockquote><p>semodule_package -o local.pp -m local.mod<\/p><\/blockquote>\n<p>Then to activate it use this<\/p>\n<blockquote><p>semodule -i local.pp<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Run the command audit2allow -m local -l > local.te < \/var\/log\/audit.log This will generate a local.te file that will have the policy to allow the things denied int he current audit.log You\u2019ll want to review closely to see if those &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=96\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[10],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/96"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":2,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}