Date: Sat, 21 Oct 2006 16:27:11 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 108236 for review Message-ID: <200610211627.k9LGRBSL015718@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108236 Change 108236 by rwatson@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610211627.k9LGRBSL015718>