Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 04:04:06 -0800
From:      David Greenman <dg@root.com>
To:        "Victor Rotanov" <vitjok@fasts.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: coredumps 
Message-ID:  <199702201204.EAA25125@root.com>
In-Reply-To: Your message of "Wed, 19 Feb 1997 17:54:17 %2B0200." <199702191722.JAA04375@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>How can i disable coredumps so that they cannot be re-enabled?

   The attached patch will completely disable coredumps.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

Index: kern_sig.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_sig.c,v
retrieving revision 1.11.4.2
diff -c -r1.11.4.2 kern_sig.c
*** kern_sig.c	1996/10/19 01:07:38	1.11.4.2
--- kern_sig.c	1997/02/20 12:01:37
***************
*** 1164,1169 ****
--- 1164,1170 ----
  	int error, error1;
  	char name[MAXCOMLEN+6];		/* progname.core */
  
+ 	return (EFAULT);
  	if (p->p_flag & P_SUGID)
  		return (EFAULT);
  	if (ctob(UPAGES + vm->vm_dsize + vm->vm_ssize) >=



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