From owner-freebsd-doc Mon Oct 2 15:50: 5 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9176337B503 for ; Mon, 2 Oct 2000 15:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA75249; Mon, 2 Oct 2000 15:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from november.jaded.net (november.jaded.net [216.94.132.37]) by hub.freebsd.org (Postfix) with ESMTP id 8FC9C37B502 for ; Mon, 2 Oct 2000 15:47:26 -0700 (PDT) Received: (from pjp@localhost) by november.jaded.net (8.9.3/8.9.3+trinsec_nospam) id SAA08440; Mon, 2 Oct 2000 18:50:57 -0400 (EDT) Message-Id: <200010022250.SAA08440@november.jaded.net> Date: Mon, 2 Oct 2000 18:50:57 -0400 (EDT) From: pjp@click2net.com Reply-To: pjp@click2net.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/21712: core(5) manpage fails to mention kern.sugid_coredump Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21712 >Category: docs >Synopsis: core(5) manpage fails to mention kern.sugid_coredump >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 02 15:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Peter Philipp >Release: >Organization: Click2Net Inc. >Environment: >Description: It takes too long for someone not familiar with coredump operations to figure out how to make a process dump core when that file is setugid or a process changes credentials with setuid(), seteuid(), setgid() ... A mention in the manpage would be helpful, patch below. >How-To-Repeat: >Fix: unified patch below for /usr/src/share/man/man5/core.5 --- core.5.orig Mon Oct 2 18:20:20 2000 +++ core.5 Mon Oct 2 18:30:23 2000 @@ -76,6 +76,14 @@ .Em \&%N.core , yielding the traditional FreeBSD behaviour. .Pp +By default, a user or group process that changes its real or effective id +credential will not create a corefile. This behaviour can be changed by +setting the +.Xr sysctl 8 +variable +.Va kern.sugid_coredump +to a true value. +.Pp The core file consists of the .Fa u . area, whose size (in pages) is >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message