summaryrefslogtreecommitdiff
path: root/proc/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/info.c')
-rw-r--r--proc/info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proc/info.c b/proc/info.c
index dbaf55d7..1390b0a2 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -52,8 +52,9 @@ S_proc_pid2task (struct proc *callerp,
return 0;
}
- if (!check_uid (callerp, p->p_owner))
+ if (! check_owner (callerp, p))
return EPERM;
+
*t = p->p_task;
return 0;
@@ -126,7 +127,7 @@ S_proc_pid2proc (struct proc *callerp,
return 0;
}
- if (!check_uid (callerp, p->p_owner))
+ if (! check_owner (callerp, p))
return EPERM;
*outproc = ports_get_right (p);