From owner-freebsd-questions Tue Jan 30 18:51: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.org (adsl-64-169-104-72.dsl.lsan03.pacbell.net [64.169.104.72]) by hub.freebsd.org (Postfix) with ESMTP id 3FFE337B69B for ; Tue, 30 Jan 2001 18:50:49 -0800 (PST) Received: by obsecurity.org (Postfix, from userid 1000) id A8DA9BA2B4; Tue, 30 Jan 2001 18:51:19 -0800 (PST) Date: Tue, 30 Jan 2001 18:51:19 -0800 From: Kris Kennaway To: mph Cc: freebsd-questions@FreeBSD.ORG Subject: Re: missing coredump after setuid() Message-ID: <20010130185119.K54217@xor.obsecurity.org> References: <3A77522E.7371FB51@fabel.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="rCb8EA+9TsBVtA92" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A77522E.7371FB51@fabel.dk>; from mph@fabel.dk on Wed, Jan 31, 2001 at 12:45:50AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --rCb8EA+9TsBVtA92 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2001 at 12:45:50AM +0100, mph wrote: > hi, >=20 > I'm writing some cgistuff I'd like to get core files when something is > wrong. The kernel (I guess, the limits in login.conf are unlimited) > refuses to give coredumps to programs that have called setuid() if the > kern.sugid_coredump is false, at least it doesn't show "core dumped". Af > I set kern.sugid_coredump to 1 to claims core to be dumped but the core > file in question doesn't exist on the disk. I've verified permissions on > current dirs, apache's ServerRoot and apache's CoreDumpDirectory, but it > didn't work out. I'm using FreeBSD 4.1.1-RELEASE. Probably the program isn't running with privileges which allow it to dump into it's current working directory, or it's dumping in a different place to where you think it is (if the process does a cd, chroot, etc, the working directory will change). As a hack, you can use the kern.corefile sysctl to force all applications to dump into a given directory. Kris --rCb8EA+9TsBVtA92 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6d32nWry0BWjoQKURAgkyAJ9GS6sozJBl9acjkhZo4joQGwi0FgCgzw6d 8T88gH89IZSVByIuV25ZPZE= =k2og -----END PGP SIGNATURE----- --rCb8EA+9TsBVtA92-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message