Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a Subversion server. It's on Fedora with SELinux enabled. I created a repository, and configured mod_dav_svn in Apache for remote access. svn ls works as expected - I get prompted for a password, and I see that there are no files in the repo. But when I try to svn import, I get an error. From the Apache error_log:

[Wed Jan 30 18:03:09 2013] [error] [client] could not begin a transaction  [500, #13]
[Wed Jan 30 18:03:09 2013] [error] [client] Can't open file '/var/svn/testing/db/txn-current-lock': Permission denied  [500, #13]

Apache should be able to read and write this file, so I have no idea what's wrong:

$ ls -Z /var/svn/testing/db/txn-current-lock
-rw-rw-r--. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/svn/testing/db/txn-current-lock
share|improve this question
You did mention SELinux being enabled - did you check auditd's logs? – fuero Jan 30 '13 at 23:59
Thanks. I checked the logs, and it does look like SELinux is the culprit here. – Mike Baranczak Jan 31 '13 at 0:16
up vote 3 down vote accepted

For the sake of completeness, as this was answered in a comment.

Check auditd's log, almost certainly in these situations SELinux is to blame, you mentioned it's enabled.

share|improve this answer
You're right, it was SELinux. This fixed it: setsebool -P httpd_unified 1 – Mike Baranczak Jan 31 '13 at 0:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.