summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index fa1add18d109..805d6aafe246 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -264,6 +264,8 @@ rtprio(curp, uap)
switch (uap->function) {
case RTP_LOOKUP:
+ if ((error = p_can(curp, p, P_CAN_SEE, NULL)))
+ return (error);
pri_to_rtp(&p->p_pri, &rtp);
return (copyout(&rtp, uap->rtp, sizeof(struct rtprio)));
case RTP_SET: