PERFORCE change 114564 for review
Robert Watson
rwatson at FreeBSD.org
Thu Feb 15 16:01:13 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=114564
Change 114564 by rwatson at 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
More information about the p4-projects
mailing list