Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 10:16:48 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243609 - head/sys/kern
Message-ID:  <201211271016.qARAGmT5040647@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Tue Nov 27 10:16:48 2012
New Revision: 243609
URL: http://svnweb.freebsd.org/changeset/base/243609

Log:
  Allow to modify kern.sugid_coredump and kern.corefile from loader.conf.
  
  Obtained from:	WHEEL Systems

Modified:
  head/sys/kern/kern_sig.c

Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c	Tue Nov 27 10:15:58 2012	(r243608)
+++ head/sys/kern/kern_sig.c	Tue Nov 27 10:16:48 2012	(r243609)
@@ -171,6 +171,7 @@ SYSINIT(signal, SI_SUB_P1003_1B, SI_ORDE
 	    (cr1)->cr_uid == (cr2)->cr_uid)
 
 static int	sugid_coredump;
+TUNABLE_INT("kern.sugid_coredump", &sugid_coredump);
 SYSCTL_INT(_kern, OID_AUTO, sugid_coredump, CTLFLAG_RW,
     &sugid_coredump, 0, "Allow setuid and setgid processes to dump core");
 
@@ -3015,6 +3016,7 @@ SYSCTL_INT(_kern, OID_AUTO, compress_use
 #endif
 
 static char corefilename[MAXPATHLEN] = {"%N.core"};
+TUNABLE_STR("kern.corefile", corefilename, sizeof(corefilename));
 SYSCTL_STRING(_kern, OID_AUTO, corefile, CTLFLAG_RW, corefilename,
 	      sizeof(corefilename), "process corefile name format string");
 



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