summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-03-01 23:17:12 +0000
committerschwarze <schwarze@openbsd.org>2010-03-01 23:17:12 +0000
commit1ea80c551d617a2560c7907ff5fd369766872bc9 (patch)
tree6fc251019f98dd78a7c1cb5996100033dc7c95d8
parentCheck for colour and attribute modifications early so the translated (diff)
downloadwireguard-openbsd-1ea80c551d617a2560c7907ff5fd369766872bc9.tar.xz
wireguard-openbsd-1ea80c551d617a2560c7907ff5fd369766872bc9.zip
explain KERN_NOSUIDCOREDUMP with less words and more precision
ok jmc@ deraadt@ guenther@
-rw-r--r--lib/libc/gen/sysctl.315
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 0ccccc9d63b..97d0d8f00ec 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.192 2010/01/14 22:25:05 guenther Exp $
+.\" $OpenBSD: sysctl.3,v 1.193 2010/03/01 23:17:12 schwarze Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 14 2010 $
+.Dd $Mdocdate: March 1 2010 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -675,10 +675,13 @@ Number of open files.
.It Dv KERN_NGROUPS
The maximum number of supplemental groups.
.It Dv KERN_NOSUIDCOREDUMP
-Programs with their set-user-ID bit set will not dump core when this is set.
-The special value of 2 means that core dumps will be allowed, but placed
-in
-.Pa /var/crash .
+Whether a process may dump core after changing user or group ID:
+.Bl -column "value" "condition" "current directory"
+.It Sy value Ta Sy condition Ta Sy "dump core to"
+.It 0 Ta "euid == 0" Ta "current directory"
+.It 1 Ta never Ta ""
+.It 2 Ta always Ta Pa /var/crash
+.El
.It Dv KERN_NPROCS
The number of entries in the kernel process table.
.It Dv KERN_NSELCOLL