[mythtv-users] Missing Thumbnails in Mythweb
Kirk Bocek
t004 at kbocek.com
Mon Jun 15 17:35:48 UTC 2015
On 6/14/2015 9:20 PM, Kirk Bocek wrote:
>
> I think this is an selinux problem. The storage directory is owned by
> mythtv.mythtv but the context is mnt_t. After trying to download a
> video I see in /var/log/audit/audit.log:
>
> type=SYSCALL msg=audit(1434341708.404:20139): arch=c000003e syscall=4
> success=no exit=-13 a0=ee24f0 a1=d25130 a2=d25130 a3=3536303331
> items=0 ppid=8425 pid=11908 auid=4294967295 uid=48 gid=48 euid=48
> suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295
> comm="mythweb.pl" exe="/usr/bin/perl"
> subj=system_u:system_r:httpd_sys_script_t:s0 key=(null)
>
> This is of course called by httpd.
>
> Who is familiar with context sharing between mythbackend and httpd?
>
After searching for similar problems with Apache and SELinux, the answer
was to set the context in the storage folder to public_content_rw_t
instead of the default mnt_t created when I made the file system. For my
particular setup:
chcon -R -t public_content_rw_t /mnt/mythtv
The ASX and direct download links are now working.
More information about the mythtv-users
mailing list