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

Re: svn: error while loading shared libraries: /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore segment port after reloc: Permission denied

From: Robert La Ferla <robertlaferla_at_comcast.net>
Date: 2007-09-27 15:00:53 CEST

The correct answer which I figured out after debugging is:

chcon -t texrel_shlib_t /usr/local/lib/libsvn_ra_dav-1.so

The SVN FAQ needs to be updated with this. The FAQ does mention
SELinux but only for the repository and not for any shared libraries.

Note for SELinux / Fedora Core 3+ / Red Hat Enterprise users:

In addition to regular Unix permissions, under SELinux every file,
directory, process, etc. has a 'security context'. When a process
attempts to access a file, besides checking the Unix permissions the
system also checks to see if the security context of the process is
compatible with the security context of the file.

Fedora Core 3, among other systems, comes with SELinux installed by
default, configured so that Apache runs in a fairly restricted
security context. To run Subversion under Apache, you have to set the
security context of the repository to allow Apache access (or turn
off the restrictions on Apache, if you think all this is overkill).
The chcon command is used to set the security context of files
(similarly to how the chmod sets the traditional Unix permissions).
For example, one user had to issue this command

    $ chcon -R -h -t httpd_sys_content_t PATH_TO_REPOSITORY

to set the security context to be able to successfully access the

Robert La Ferla
Received on Thu Sep 27 15:09:35 2007

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.