{"id":89,"date":"2007-06-26T07:27:05","date_gmt":"2007-06-26T15:27:05","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=89"},"modified":"2007-06-26T07:27:05","modified_gmt":"2007-06-26T15:27:05","slug":"freenx-and-selinux","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/freenx-and-selinux\/","title":{"rendered":"FreeNX and SELinux"},"content":{"rendered":"<p>As I [mentioned earlier](http:\/\/jaredrobinson.com\/blog\/?p=87), upgrading from Fedora 6 to Fedora 7 broke FreeNX. A temporary solution was to disable SELinux. Here&#8217;s what allowed me to re-enable SELinux. First, I read the RHEL 5 SELinux guide to [building a local policy module](http:\/\/www.redhat.com\/docs\/manuals\/enterprise\/RHEL-5-manual\/Deployment_Guide-en-US\/sec-sel-building-policy-module.html). Next, I ran the following commands, as root:<\/p>\n<p>    setenforce Enforcing<br \/>\n    \/etc\/init.d\/auditd stop<br \/>\n    mv \/var\/log\/audit\/audit.log \/var\/log\/audit.log.old<br \/>\n    \/etc\/init.d\/auditd start<\/p>\n<p>At this point, I used an NX client to attempt to connect to my server, which failed. Then I did this:<\/p>\n<p>    cd \/etc\/selinux<br \/>\n    cat \/var\/log\/audit\/audit.log | audit2allow -M freenx<br \/>\n    semodule -i freenx.pp<\/p>\n<p>At that point, my NX client allowed me to connect to the server. Here&#8217;s the freenx.te file that audit2allow created:<\/p>\n<p>    module freenx 1.0;<\/p>\n<p>    require {<br \/>\n            type unconfined_t;<br \/>\n            type lib_t;<br \/>\n            class file execmod;<br \/>\n    }<\/p>\n<p>    #============= unconfined_t ==============<br \/>\n    allow unconfined_t lib_t:file execmod;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I [mentioned earlier](http:\/\/jaredrobinson.com\/blog\/?p=87), upgrading from Fedora 6 to Fedora 7 broke FreeNX. A temporary solution was to disable SELinux. Here&#8217;s what allowed me to re-enable SELinux. First, I read the RHEL 5 SELinux guide to [building a local policy module](http:\/\/www.redhat.com\/docs\/manuals\/enterprise\/RHEL-5-manual\/Deployment_Guide-en-US\/sec-sel-building-policy-module.html). Next, I ran the following commands, as root: setenforce Enforcing \/etc\/init.d\/auditd stop mv \/var\/log\/audit\/audit.log &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/freenx-and-selinux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FreeNX and SELinux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,9,16,17],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-fedora","category-linux","category-security","category-tech"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}