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

Re: Subversion Hooks Issue

From: Doug Goldstein <doug_at_monetra.com>
Date: 2007-02-10 00:00:46 CET

Erik Hemdal wrote:
>
>> -----Original Message-----
>> From: Doug Goldstein [mailto:doug@monetra.com]
>> Sent: Friday, February 09, 2007 4:55 PM
>> To: users@subversion.tigris.org
>> Subject: Re: Subversion Hooks Issue
>>
>>
>>
>> # cat pre-commit
>> #!/bin/sh
>>
>> LOG=/tmp/hook.log
>>
>> /usr/bin/whoami >> $LOG 2>&1
>> /bin/echo "about to execute cmd" >> $LOG 2>&1
>> /bin/echo "finished cmd" >> $LOG 2>&1
>>
>>
>> Nothing was ever created in /tmp/. I can run the script successfully
>> with the following however:
>>
>> env - /var/data/svn/monetra/hooks/pre-commit
>>
>> The env - command clears out your environment so you don't even have
>> PATH set.
>>
>
> By any chance, are you on Linux with SELinux enforcing? I wasn't thinking
> about that before, but that also might cause these mysterious failures.
> SELinux is famous for preventing you from running something because even
> though you have permission on the script/program/etc. it's trying to work in
> a directory or a file that SELinux policy says you should not be in.
>
> Erik
>
>
>

I do have grsec on that machine. I didn't think of that. A quick glance
doesn't appear to show grsec nuking anything. But I will dig into it on
Monday and report back if I find anything. Thanks for the suggestion.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 10 00:01:07 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.