summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-30 21:34:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-30 21:34:48 +0000
commit4c0ac263ded8f53c10fafb84a0cf047c25b626d4 (patch)
tree57686f7b047709f9d647f30076f2bb4d84dda8f2 /sys/arch/amd64
parentf72513fd433fa7a329df6cf05d7faffa4965313d (diff)
Make routines which may set PSL_IOPL consistent wrt the securelevel for
which this is allowed; ok deraadt@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/sys_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/sys_machdep.c b/sys/arch/amd64/amd64/sys_machdep.c
index 19a1ff1df0d..68205737c68 100644
--- a/sys/arch/amd64/amd64/sys_machdep.c
+++ b/sys/arch/amd64/amd64/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.3 2004/02/27 23:45:55 deraadt Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.4 2006/06/30 21:34:45 miod Exp $ */
/* $NetBSD: sys_machdep.c,v 1.1 2003/04/26 18:39:32 fvdl Exp $ */
/*-
@@ -299,7 +299,7 @@ amd64_iopl(struct proc *p, void *args, register_t *retval)
if (!allowaperture && securelevel > 0)
return EPERM;
#else
- if (securelevel > 1)
+ if (securelevel > 0)
return EPERM;
#endif