Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144412508
D33393.id99884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
531 B
Referenced Files
None
Subscribers
None
D33393.id99884.diff
View Options
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -202,8 +202,9 @@
switch(rtp->type) {
case RTP_PRIO_REALTIME:
case RTP_PRIO_FIFO:
- /* Only root can set scheduler policy */
- if (priv_check(td, PRIV_SCHED_SETPOLICY) != 0)
+ /* Needs scheduler policy or realtime privileges */
+ if (priv_check(td, PRIV_SCHED_SETPOLICY) != 0 &&
+ priv_check(td, PRIV_SCHED_RTPRIO) != 0)
return (EPERM);
if (rtp->prio > RTP_PRIO_MAX)
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 7:37 AM (7 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28554259
Default Alt Text
D33393.id99884.diff (531 B)
Attached To
Mode
D33393: Thread creation privilege for realtime group.
Attached
Detach File
Event Timeline
Log In to Comment