Date: Tue, 3 Oct 2006 07:51:19 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 107147 for review Message-ID: <200610030751.k937pJ6G026339@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107147 Change 107147 by rwatson@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610030751.k937pJ6G026339>