Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2007 16:01:12 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114564 for review
Message-ID:  <200702151601.l1FG1CBt091709@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114564

Change 114564 by rwatson@rwatson_cinnamon on 2007/02/15 16:00:36

	Remove a suser() check that got introduced during some or another
	CVS project.  Need to turn suser() into panic() to discourage this.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/kern/kern_resource.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/kern/kern_resource.c#8 (text+ko) ====

@@ -330,7 +330,7 @@
 			break;
 
 		/* Disallow setting rtprio in most cases if not superuser. */
-		if (suser(td) != 0) {
+		if (priv_check(td, PRIV_SCHED_RTPRIO) != 0) {
 			/* can't set realtime priority */
 /*
  * Realtime priority has to be restricted for reasons which should be



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702151601.l1FG1CBt091709>