summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-15 03:09:36 +0000
committerMiles Bader <miles@gnu.org>1996-05-15 03:09:36 +0000
commit3bb81e35039714ee473fc9cd1a74f801752d633d (patch)
tree47afa5edb52e5de1987c7e2b4779a1733f078306
parent26d6a1892e7e549d093a641bff5033a29f04bf22 (diff)
(S_proc_pid2task, S_proc_pid2proc): Use check_owner.
-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);