From pjp@november.jaded.net  Mon Oct  2 15:47:27 2000
Return-Path: <pjp@november.jaded.net>
Received: from november.jaded.net (november.jaded.net [216.94.132.37])
	by hub.freebsd.org (Postfix) with ESMTP id 8FC9C37B502
	for <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: pjp@november.jaded.net
Reply-To: pjp@click2net.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: core(5) manpage fails to mention kern.sugid_coredump 
X-Send-Pr-Version: 3.2

>Number:         21712
>Category:       docs
>Synopsis:       core(5) manpage fails to mention kern.sugid_coredump
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 02 15:50:01 PDT 2000
>Closed-Date:    Wed Jan 9 05:16:31 PST 2002
>Last-Modified:  Wed Jan 09 05:16:49 PST 2002
>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:
Responsible-Changed-From-To: freebsd-doc->dan  
Responsible-Changed-By: dan 
Responsible-Changed-When: Sat Oct 14 16:11:32 PDT 2000 
Responsible-Changed-Why:  
I'll quickly fix this. (Hi Peter!) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21712 

From: Peter Philipp <pjp@dega.daemonium.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: docs/21712
Date: Sun, 1 Apr 2001 03:47:05 -0500

 I had asked Dan to hold on with this PR as I didn't like the wording.  I still
 don't fully like it but this is the best I have so far.
 
 --- core.5.orig Sun Apr  1 04:16:46 2001
 +++ core.5      Sun Apr  1 04:42:54 2001
 @@ -78,6 +78,14 @@
  .Fx
  behaviour.
  .Pp
 +By default, a process that changes user or group credentials whether
 +real or effective won't create a corefile.  This behaviour can be 
 +changed to generate a core dump when setting the
 +.Xr sysctl 8
 +variable
 +.Va kern.sugid_coredump
 +to 1.
 +.Pp
  The core file consists of the
  .Fa u .
  area, whose size (in pages) is
 
 -- 
 -                                                                              -
 Peter Philipp <pjp@daemonium.com>
 Daemonium
 
 
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Wed Jan 9 05:16:31 PST 2002 
State-Changed-Why:  
Revised text committed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21712 
>Unformatted:
