httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Weird error: httpd dies with mmap permission denied
Date Tue, 25 Jan 2005 15:24:17 GMT
On Tue, Jan 25, 2005 at 05:08:47PM +0200, Graham Leggett wrote:
> After building httpd trunk on Fedora Core 3 and installing it, any attempt
> at running httpd dies as listed below.
> 
> The same version of httpd built on MacOSX works fine.
> 
> Can anyone recognise what's going on here and what I should do to fix it?
> 
> [root@fosvn01 SPECS]# strace httpd -D
...
> open("/lib/tls/libm.so.6", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0003\0"..., 512)
> = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=213448, ...}) = 0
> old_mmap(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = -1 EACCES (Permission denied)

You've been bitten by SELinux, see /var/log/messages for the
corresponding avc denial message.  It's either:

1) an elusive bug seen by some FC3 users where shared library SELinux
labels go awry, fixed by running "fixfiles restore" as root.

2) since you're using self-built httpd it's possibly something less
subtle, in which case you could disable the SELinux policy for httpd
using "setsebool httpd_disable_trans 1".  Pass -P to setsebool to make
that policy change permanent; make sure you've got the latest libselinux
package from the FC3 updates.

See http://fedora.redhat.com/docs/selinux-apache-fc3/ for SELinux vs
httpd stuff or http://fedora.redhat.com/docs/selinux-faq-fc3/ for
general information on SELinux in FC3.

joe

Mime
View raw message