From owner-freebsd-questions Thu Feb 20 04:03:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA08472 for questions-outgoing; Thu, 20 Feb 1997 04:03:29 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA08463 for ; Thu, 20 Feb 1997 04:03:25 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id EAA25125; Thu, 20 Feb 1997 04:04:06 -0800 (PST) Message-Id: <199702201204.EAA25125@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: "Victor Rotanov" cc: freebsd-questions@freebsd.org Subject: Re: coredumps In-reply-to: Your message of "Wed, 19 Feb 1997 17:54:17 +0200." <199702191722.JAA04375@freefall.freebsd.org> From: David Greenman Reply-To: dg@root.com Date: Thu, 20 Feb 1997 04:04:06 -0800 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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) >=