List Info

Thread: Re: svn: error while loading shared libraries: /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore




Re: svn: error while loading shared libraries: /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore
user name
2007-09-27 07:53:00
Thanks but I don't quite understand why a firewall has
anything to do  
with that error message.  If you simply type
"svn", you are not  
accessing any remote servers.

On Sep 27, 2007, at 3:51 AM, Dilip Malinur Ramesh wrote:

> Hi,
> I just wanted to put my observation if your still stuck
with the issue
> we had discussed earlier.
> I was trying to use SVN from our corporate network with
all high
> security firewalls enabled  but I was
successful in accessing SVN  
> from
> my home PC which does not have any protection enabled.
> Probably that could be reason if we are behind proxy or
our  
> connections
> are monitored to stop access repositories like SVN
etc..
>
>
> With kind regards,
> Dilip Malinur Ramesh
> -----Original Message-----
> From: Robert La Ferla [mailto:robertlaferlacomcast.net]
> Sent: Friday, September 21, 2007 10:11 PM
> To: Dilip Malinur Ramesh
> Subject: Re: svn: error while loading shared
libraries:
> /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore
segment prot after
> reloc: Permission denied
>
> I wish I had an answer for you but no-one has replied
with one
> despite me asking twice.  I recommend that you reply to
my message on
> the mailing list and state that you are also having
this problem and
> how to fix it.
>
> On Sep 21, 2007, at 8:37 AM, Dilip.Rameshkpitcummins.com wrote:
>
>> Hi,
>> I found your message on this forum, I am facing
same problem as you
>> were,
>> I have installed Subversion 1.4.5  using,
>>
>> subversion-1.4.5.tar and subversion-deps-1.4.5.tar
on
>>
>> Linux localhost.localdomain 2.6.15-1.2054_FC5 #1
Tue Mar 14
>> 15:48:33 EST 2006 i686 i686 i386 GNU/Linux
>> I get following error message, when I invoke SVN
>> svn: error while loading shared libraries:
/usr/local/lib/
>> libsvn_ra_dav-1.so.0: cannot restore segment prot
after reloc:
>> Permission denied
>>
>> Kinldy let me know whether you were able to resolve
the problem?
>> If yes, please tell me how to resolve it.
>>
>> Regards,
>> Dilip Malinur Ramesh
>>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribesubversion.tigris.org
For additional commands, e-mail: users-helpsubversion.tigris.org


Re: svn: error while loading shared libraries: /usr/local/lib/libsvn_ra_dav-1.so.0: cannot restore
user name
2007-09-27 08:00:53
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.

<blockquote>
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 repository.
</blockquote>

Robert La Ferla

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )