PERFORCE change 108236 for review

Robert Watson rwatson at FreeBSD.org
Sat Oct 21 09:27:54 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=108236

Change 108236 by rwatson at rwatson_zoo on 2006/10/21 16:26:51

	Remove new suser() added since last pass.  Not present in RELENG_6.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/sun4v/sun4v/hvcons.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/sun4v/sun4v/hvcons.c#2 (text+ko) ====

@@ -36,6 +36,7 @@
 #include <sys/conf.h>
 #include <sys/cons.h>
 #include <sys/consio.h>
+#include <sys/priv.h>
 #include <sys/rman.h>
 #include <sys/tty.h>
 
@@ -118,7 +119,8 @@
 		ttyconsolemode(tp, 0);
 
 		setuptimeout = 1;
-	} else if ((tp->t_state & TS_XCLUDE) && suser(td)) {
+	} else if ((tp->t_state & TS_XCLUDE) && priv_check(td,
+	     PRIV_TTY_EXCLUSIVE)) {
 		return (EBUSY);
 	}
 


More information about the trustedbsd-cvs mailing list