From MythTV Official Wiki
Jump to: navigation, search

I use Fedora as my mythtv system with a combined frontend/backend running in selinux enforcing mode.

To make mythtv work with selinux I had to do a few changes:

# allow mythweb to write to /usr/share/mythweb/data
semanage fcontext -a -t httpd_sys_content_t "/usr/share/mythweb/data(/.*)?"
# allow mythweb to read my recordings, i store everything in /storage
semanage fcontext -a -t public_content_t "/storage(/.*)?"
# allow mythweb to run
semanage fcontext -a -t httpd_sys_script_exec_t /usr/share/mythweb/
setsebool -P httpd_can_network_connect=1