diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:34:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-30 21:34:48 +0000 |
commit | 4c0ac263ded8f53c10fafb84a0cf047c25b626d4 (patch) | |
tree | 57686f7b047709f9d647f30076f2bb4d84dda8f2 /sys/arch/amd64 | |
parent | f72513fd433fa7a329df6cf05d7faffa4965313d (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.c | 4 |
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 |