https://bugzilla.redhat.com/show_bug.cgi?id=2121585
--- Comment #75 from Benson Muite <benson_muite(a)emailplus.org> ---
For selinux permissions see:
https://fedoraproject.org/wiki/PackagingDrafts/SELinux
Probably does not make sense to create a new policy, since if one wants to run
demos, they are read by a web server.
Thus add:
Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
...
%post
semanage fcontext -a -t httpd_sys_content_t '%{_datadir}/%{name}/demos(/.*)?'
2>/dev/null || :
restorecon -R %{_datadir}/awstats/wwwroot/cgi-bin || :
%postun
if [ $1 -eq 0 ] ; then # final removal
semanage fcontext -d -t httpd_sys_content_t '%{_datadir}/%{name}/demos(/.*)?'
2>/dev/null || :
fi
--
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2121585
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=rep...