Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 01:21:46 +0200
From:      Palle Girgensohn <girgen@partitur.se>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How get apache to dump CGI program's core?
Message-ID:  <37B9EE8A.A0DA71BF@partitur.se>
References:  <37B9462F.252A986A@partitur.se> <37B9EB1A.A9BF87DB@ispro.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
Evren Yurtesen wrote:
> 
> what if you give temporary write access to the userid of the apache
> process? 
> or if apache is switching to the userid of the file owner
> you may give write access for the file owner.

"nobody" has write access to the CoreDumpDirectory (/var/tmp)

I believe that the problem is that the kernel won't allow cores to be
dumped when the program has changed uid or similar (not sure exactly
what the constraints are).

> I believe that this would not be a secure approach for a system though
> 
> Evren Yurtesen
> 
> Palle Girgensohn wrote:
> >
> > Hi!
> >
> > I'm running apache 1.3.6 on FreeBSD 3.2-stable.
> >
> > I'm doing some CGI development, and need to get core dumps when the
> > programs fail. Since apache does setuid, the programs are not allowed to
> > dump core. Even running apache with -X doesn't help; they sig 11 but no
> > core dump. :(
> >
> > Any ideas?
> >
> > There's some info on the apache site, but it doesn't say how to fix it:
> > http://www.apache.org/docs/misc/FAQ-D.html#wheres-the-dump
> >
> > Thanks!
> >
> > /Palle
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37B9EE8A.A0DA71BF>