logo       


RE: viewvc-1.0.3 / svn 1.4.3, Permission denied: msg#00000

Subject: RE: viewvc-1.0.3 / svn 1.4.3, Permission denied
Hello,

I am surprised that the following mail I sent on Friday didn't make its
way to the archive.
Anyway, I solved my problem which was an SElinux one:
by default, the httpd daemon was not allowed to run scripts from the
/usr/ hierarchy.
Using an audit2allow, several times in a row, and combining the rules
produced,
I could work around it.

Marc

> -----Original Message-----
> From: marc.girod@xxxxxxxx [mailto:marc.girod@xxxxxxxx] 
> Sent: 30 March 2007 11:45
> To: users@xxxxxxxxxxxxxxxxx
> Cc: Girod, Marc
> Subject: viewvc-1.0.3 / svn 1.4.3, Permission denied
> 
> Hello,
> 
> I just installed svn 1.4.3 on RHES 4, x86_64, then viewvc-1.0.3,
> but whe I try to use it, I get a 500 error, with the following in the 
> httpd/error_log:
> 
> [Fri Mar 30 11:16:22 2007] [error] [client 10.5.2.144] 
> (13)Permission denied: exec of 
> '/usr/local/viewvc-1.0.3/bin/cgi/viewvc.cgi' failed
> [Fri Mar 30 11:16:22 2007] [error] [client 10.5.2.144] 
> Premature end of script headers: viewvc.cgi
> 
> I also have in 'messages':
> 
> Mar 30 11:16:22 pddubsvn1 kernel: audit(1175249782.920:0): 
> avc:  denied  { execute } for  pid=2229 exe=/usr/sbin/httpd 
> name=viewvc.cgi dev=dm-3 ino=786889 
> scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t 
> tclass=file
> 
> 
> I cannot see where is this permission denied problem.
> - the script itself is executable (and produces a reasonable stdout):
>   $ cd /usr/local/viewvc-1.0.3/bin/cgi/
>   $ ls -l viewvc.cgi
>   -rwxr-xr-x  1 root root 1779 Mar 29 16:50 viewvc.cgi
> - the svn root directory, and the only repo are accessible:
>   $ cd /x1/svnroot
>   $ ls -la
>   total 24
>   drwxrwxr-x  3 root   iona 4096 Mar 29 17:27 .
>   drwxrwxr-x  4 root   iona 4096 Mar 28 17:59 ..
>   drwxrwxr-x  7 vobadm iona 4096 Mar 29 17:27 foo
> - I do have an httpd pam module:
>   $ cd /etc/pam.d
>   $ cat httpd
>   #%PAM-1.0
>   auth       required     pam_stack.so service=system-auth
>   auth       required     pam_nologin.so
>   account    required     pam_stack.so service=system-auth
>   password   required     pam_stack.so service=system-auth
>   session    required     pam_stack.so service=system-auth
> 
> - httpd://pddubsvn1/repos/foo dav urls work fine
> - viewvc is setup in httpd.conf:
>   $ grep /viewsvn /etc/httpd/conf/httpd.conf
>   ScriptAlias /viewsvn "/usr/local/viewvc-1.0.3/bin/cgi/viewvc.cgi"
> 
> 
> Googling around for 'avc denied' returns something about SElinux,
> and ...labels on /dev...
> 
> Any help for me to orient myself?
> I didn't install this box from scratch, and I have no experience
> with SElinux...
> 
> Marc
> 


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe