{"id":723,"date":"2009-07-24T05:54:56","date_gmt":"2009-07-23T19:54:56","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=723"},"modified":"2018-12-12T15:55:53","modified_gmt":"2018-12-12T05:55:53","slug":"using-selinux-with-networker","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/07\/24\/using-selinux-with-networker\/","title":{"rendered":"Using SELinux with NetWorker"},"content":{"rendered":"<p>I&#8217;m not all that conversant with SELinux, and <em>for the most part<\/em>, disable it on systems that I configure simply because these days 99% of the systems I configure are within a lab and already heavily firewalled. When NetWorker 7.5 came out and the release notes explicitly stated that SELinux was not supported, it seemed inevitable that my involvement with SELinux would continue to decrease.<\/p>\n<p>When SELinux was recently discussed on the NetWorker mailing list, I responded citing the release notes indicating it wasn&#8217;t supported. I was therefore surprised to discover there was a workaround. Responding to the thread, Rich Graves posted the following SELinux adjustments that are necessary to get NetWorker and SELinux working together. I present them unaltered, but can attest to having confirmed they do indeed work. Here&#8217;s what Rich had to say:<\/p>\n<blockquote><p>This has worked for me for about a year, on both client and server. The textrel_shlib change is fairly common for proprietary binaries.<\/p>\n<p>semanage fcontext -a -t textrel_shlib_t &#8220;\/usr\/lib\/nsr(\/.*)?&#8221;<br \/>\nsemanage fcontext -a -t var_log_t &#8220;\/nsr\/logs(\/.*)?&#8221;<br \/>\nrestorecon -R \/usr\/lib\/nsr<br \/>\nrestorecon -R \/nsr\/logs<\/p>\n<p>Another approach for the logs is to edit syslog.conf and drop them in \/var\/log instead of \/nsr\/logs.<\/p><\/blockquote>\n<p>If you&#8217;re needing to work with NetWorker and SELinux, hopefully the above tips will help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not all that conversant with SELinux, and for the most part, disable it on systems that I configure simply&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,21],"tags":[873],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-networker","category-security","tag-selinux"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-bF","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=723"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":7633,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/723\/revisions\/7633"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}