[mythtv-users] mythweb selinux issue

David Watkins watkinshome at gmail.com
Tue Sep 15 13:45:17 UTC 2020


On Tue, 15 Sep 2020 at 13:55, David Watkins <watkinshome at gmail.com> wrote:

> I'm getting the following errors replacing the expected content on mythweb
> pages when selinux is enforcing.
>
>
> <link rel="stylesheet" type="text/css" href="
> http://192.168.0.85/mythweb/skins/default//tv_list.css">
>
> Unable to connect to the master backend at 192.168.0.85:6543.
> Is it running?
>
>
>
>
>
> the backend definitely is running.
>
> some googling suggested the following commands:
>
> setsebool httpd_can_network_connect_db 1
> setsebool selinuxuser_mysql_connect_enabled 1
>
> which sounded promising but didn't help.
>
> With selinux set permissive all works as expected.
>
> I've labelled mythweb directories as httpd_sys_content_t and /data (and
> now /skins as well) as httpd_sys_rw_content_t.
>
> I'm trying to resist disabling selinux for this mythtv build.
>
> D
>

A bit more googling reveals that the options I should have used were:

setsebool httpd_can_network_connect 1
setsebool httpd_can_network_connect_db 1

with a -P to make the change permanent.

D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200915/386966ff/attachment.htm>


More information about the mythtv-users mailing list