diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 09a1ccc..efce45b 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -330,7 +330,7 @@ rtprio_thread(struct thread *td, struct rtprio_thread_args *uap) 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 |