Selinux and awstats

Daniel J Walsh dwalsh at redhat.com
Thu Jul 3 18:14:09 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Claude Jones wrote:
> On Mon June 30 2008, Daniel J Walsh wrote:
>> Well you can remove the emacs back up file.
>>
>> /etc/selinux/targeted/contexts/files/file_contexts.local~
>>
> 
> I did that
> 
>> Everything looks fine.
>>
>> If you execute
>>
>> matchpathcon /var/lib/awstats
>>
>> Does it report an error now?
> 
> Seems it does:
> 
> # matchpathcon /var/lib/awstats
> /etc/selinux/targeted/contexts/files/file_contexts: Multiple different 
> specifications for /usr/share/awstats/wwwroot/cgi-bin(/.*)?  
> (system_u:object_r:httpd_sys_script_exec_t:s0 and 
> system_u:object_r:httpd_awstats_script_exec_t:s0).
> /var/lib/awstats        system_u:object_r:awstats_var_lib_t


# semanage fcontext -d '/usr/share/awstats/wwwroot/cgi-bin(/.*)?'

Should fix it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkhtFvEACgkQrlYvE4MpobN8FwCgp0y9n2/2LNXEWUjwBpfXM0y0
JUAAoNMDZUcPcz0qwuoTc4xg2j+D1B3r
=R6DT
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list