summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorjoshua stein <jcs@cvs.openbsd.org>2007-05-29 00:26:30 +0000
committerjoshua stein <jcs@cvs.openbsd.org>2007-05-29 00:26:30 +0000
commit71664a6638bb10ecb2014eab1aba455ce6fdec19 (patch)
tree3853e14369e347eb749f4eb4e7a124faf38ff74c /sys
parentd485c0ab44646e2a9f75dac9939ef4532fd9e8f2 (diff)
update comment re nosuidcoredump sysctl
ok tedu
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sig.c5
1 files changed, 3 insertions, 2 deletions
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)) {