summaryrefslogtreecommitdiff
path: root/sbin/sysctl
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-18 03:32:17 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-18 03:32:17 +0000
commit3f31c981b1a74d2ecb49a95f024d91fda9334da9 (patch)
treedd70740acafee7540a927682344dd670f5212846 /sbin/sysctl
parenta33427cdc74e87f3a511989dc14ddfedf42e80a4 (diff)
Add a possibility to add a random offset to the stack on exec. This makes
it slightly harder to write generic buffer overflows. This doesn't really give any real security, but it raises the bar for script-kiddies and it's really cheap. The range of the random offsets is controlled by the sysctl kern.stackgap_random (must be a power of 2). This is disabled by default right now, but we'll set it to a reasonable value (1024?) soon, after some more testing.
Diffstat (limited to 'sbin/sysctl')
-rw-r--r--sbin/sysctl/sysctl.83
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 6dc881d6aa8..ee77fb33c15 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.67 2001/07/05 08:42:14 jjbg Exp $
+.\" $OpenBSD: sysctl.8,v 1.68 2001/08/18 03:32:16 art Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -148,6 +148,7 @@ privilege can change the value.
.It kern.fscale int no
.It kern.ccpu u_int no
.It kern.nprocs int no
+.It kern.stackgap_random int yes
.It vm.loadavg struct no
.It vm.psstrings struct no
.It vm.swapencrypt.enable integer yes