Index: arch/i386/i386/sys_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/sys_machdep.c,v
retrieving revision 1.23
diff -u -r1.23 sys_machdep.c
--- arch/i386/i386/sys_machdep.c	2004/02/01 12:26:45	1.23
+++ arch/i386/i386/sys_machdep.c	2006/01/17 15:47:19
@@ -394,6 +394,13 @@
 	if ((error = suser(p, 0)) != 0)
 		return error;
 
+#ifdef APERTURE
+	if (!allowaperture && securelevel > 0)
+		return EPERM;
+#else
+	if (securelevel > 0)
+		return EPERM;
+#endif
 	if ((error = copyin(args, &ua, sizeof(ua))) != 0)
 		return (error);
 
