Red Hat Bugzilla – Bug 167639
policycoreutils could be a dependency of mod_dav_svn or httpd?
Last modified: 2007-11-30 17:07:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Description of problem:
File /etc/httpd/conf.d/subversion.conf contains the following comment:
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be readable and writable by the 'apache' user. Note that if
# SELinux is enabled, the repositories must be labelled with a context
# which httpd can write to; this will happen by default for
# directories created in /var/www. Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
I can't find "restorecon":
# locate restorecon
Oh, it's actually in package policycorutils:
# up2date -i policycoreutils
# rpm -qf /sbin/restorecon
Maybe "policycoreutils" should be installed when installing Apache - a dependency? Or maybe it should be always installed?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cat /etc/httpd/conf.d/subversion.conf
restorecon is just given as an example of how to label the directory if this is
an upgrade and an old unlabelled directory exists. If the directory is created
from new, restorecon is not needed. chcon from coreutils could equally well be
used, in any case; the package itself has no requirement on restorecon.