Date: Tue, 5 Jul 2005 11:18:01 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 79595 for review Message-ID: <200507051118.j65BI1g0074555@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79595 Change 79595 by rwatson@rwatson_paprika on 2005/07/05 11:17:46 Use CAP_SYS_TTY_CONFIG for TS_XCLUDE privilege. Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/dev/dcons/dcons_os.c#3 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/dev/dcons/dcons_os.c#3 (text+ko) ==== @@ -296,7 +296,8 @@ tp->t_state |= TS_CARR_ON; ttyconsolemode(tp, 0); ttsetwater(tp); - } else if ((tp->t_state & TS_XCLUDE) && suser(td)) { + } else if ((tp->t_state & TS_XCLUDE) && + cap_check(td, CAP_SYS_TTY_CONFIG)) { splx(s); return (EBUSY); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507051118.j65BI1g0074555>