[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SELinux (FC3), Subversion, & Apache - Newbie question

From: Jason Hunt <xfleax_at_gmail.com>
Date: 2005-03-09 06:59:34 CET

Hello All,
  I am having troubles with getting subversion to run appropriately
over WebDAV via Apache. Below are the steps I took to replicate the
problem.

  I installed FC3, apache2, subversion (1.1.2), and mod_dav_svn.

  While logged in as root I performed the following:
     1) issue the 'mkdir /home/svnroot'
     2) issue the 'mkdir /home/svnroot/conf'
     3) issue the svnadmin create '/home/svnroot/test' command.
     4) issue the 'svn import /home/username/projectname
file:///home/svnroot/test -m "initial import"' command
     5) edit the httpd.conf file as follows:

          LoadModule dav_module modules/mod_dav.so
          LoadModule dav_svn_module modules/mod_dav_svn.so

          <VirtualHost *:80>
            ServerAdmin me@email.com
            ErrorLog logs/server-error_log
            CustomLog logs/server-access_log common

            <Location /svn>
              DAV svn
              SVNParentPath /home/svnhome

              AuthType Basic
              AuthName "Subversion repositories"
              AuthUserFile /home/svnhome/conf/svnpasswd
              Require valid-user
            </Location>
          </VirtualHost>
     6) create the svnpasswd file 'htpasswd -cm
/home/svnroot/conf/svnpasswd username' then enter their password.
     7) issue the 'chcon -R -h -t httpd_user_content_t /home/svnroot' command.
     8) restart apache ('service httpd restart')

  All of this works fine.

  When I try and access the repository using IE
(http://192.168.0.199/svn) on my Windows workstation, I receive the
prompt to enter my credentials and the following error finds its way
into the logs:

avc: denied { read } for pid=12536 exe=/usr/sbin/httpd name=home
dev=dm-0 ino=23 scontext=root:system_r:httpd_t
tcontext=root:object_r:root_t tclass=lnk_file

I know that I have seen this error in the mailing list, but I am too
newbie to understand what the error is telling me I need to do to
correct this problem. I am having the feeling that the access is being
stopped at the /home directory and not even getting to the
/home/svnroot directory, but I am not certain how to fix the problem
effectively. Any help to correct this would be appreciated.

Jason Hunt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 9 07:02:32 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.