From 3bb81e35039714ee473fc9cd1a74f801752d633d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 15 May 1996 03:09:36 +0000 Subject: (S_proc_pid2task, S_proc_pid2proc): Use check_owner. --- proc/info.c | 5 +++-- 1 file 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); -- cgit v1.2.3