PERFORCE change 107147 for review

Robert Watson rwatson at FreeBSD.org
Tue Oct 3 00:51:24 PDT 2006


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

Change 107147 by rwatson at rwatson_peppercorn on 2006/10/03 07:51:02

	One more instance of alpha update for priv(9).

Affected files ...

.. //depot/projects/trustedbsd/priv6/src/sys/alpha/tlsb/zs_tlsb.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/priv6/src/sys/alpha/tlsb/zs_tlsb.c#2 (text+ko) ====

@@ -41,6 +41,7 @@
 #include <sys/bus.h>
 #include <sys/conf.h>
 #include <sys/tty.h>
+#include <sys/priv.h>
 #include <sys/proc.h>
 #include <sys/cons.h>
 #include <machine/clock.h>
@@ -286,7 +287,8 @@
 		ttyconsolemode(tp, 0);
 		ttsetwater(tp);
 		setuptimeout = 1;
-	} else if ((tp->t_state & TS_XCLUDE) && suser(td)) {
+	} else if ((tp->t_state & TS_XCLUDE) &&
+	    priv_check(td, PRIV_TTY_EXCLUSIVE)) {
 		splx(s);
 		return EBUSY;
 	}


More information about the trustedbsd-cvs mailing list