PERFORCE change 79595 for review

Robert Watson rwatson at FreeBSD.org
Tue Jul 5 11:18:01 GMT 2005


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

Change 79595 by rwatson at 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);
 	}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list