summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-15 21:41:37 +0000
committerderaadt <deraadt@openbsd.org>2006-03-15 21:41:37 +0000
commit4e65eb0366cf8c2f6b7f2f2d1f5fe4612ce2ff3d (patch)
tree86bb2ee9edf40e6194881455632cc724503a17b0 /sys
parent- remove unused function cvs_putchar() (diff)
downloadwireguard-openbsd-4e65eb0366cf8c2f6b7f2f2d1f5fe4612ce2ff3d.tar.xz
wireguard-openbsd-4e65eb0366cf8c2f6b7f2f2d1f5fe4612ce2ff3d.zip
use sysctl_int_lower() for the aperture variable. This lets root close
the aperture without having to reboot, but does not allow re-opening; ok matthieu
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/arm/arm32_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c
index 26fd48655b3..ab551548063 100644
--- a/sys/arch/arm/arm/arm32_machdep.c
+++ b/sys/arch/arm/arm/arm32_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arm32_machdep.c,v 1.19 2006/01/17 20:30:10 miod Exp $ */
+/* $OpenBSD: arm32_machdep.c,v 1.20 2006/03/15 21:41:37 deraadt Exp $ */
/* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */
/*
@@ -452,8 +452,8 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
case CPU_ALLOWAPERTURE:
#ifdef APERTURE
if (securelevel > 0)
- return (sysctl_rdint(oldp, oldlenp, newp,
- allowaperture));
+ return (sysctl_int_lower(oldp, oldlenp, newp, newlen,
+ &allowaperture));
else
return (sysctl_int(oldp, oldlenp, newp, newlen,
&allowaperture));