From 71664a6638bb10ecb2014eab1aba455ce6fdec19 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Tue, 29 May 2007 00:26:30 +0000 Subject: update comment re nosuidcoredump sysctl ok tedu --- sys/kern/kern_sig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 24d2e2e60ec..d1135a04f21 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.92 2007/05/29 00:03:18 tedu Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.93 2007/05/29 00:26:29 jcs Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -1363,7 +1363,8 @@ coredump(struct proc *p) /* * Don't dump if not root and the process has used set user or - * group privileges. + * group privileges, unless the nosuidcoredump sysctl is set to 2, + * in which case dumps are put into /var/crash/. */ if (((p->p_flag & P_SUGID) && (error = suser(p, 0))) || ((p->p_flag & P_SUGID) && nosuidcoredump)) { -- cgit v1.2.3