summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-08-08 18:02:38 +0200
committerJustus Winter <justus@gnupg.org>2016-08-08 18:04:07 +0200
commitc9cd19504f87705f73294c639c9a0bc33a27aed3 (patch)
treef2f0133ae06f706d502fc5109aebe3eb49e6e433 /proc
parent1912e6a69419d4448795ae1451c7b7c57ac16a52 (diff)
proc: Fix permission check.
* proc/mgt.c (S_proc_mark_important): Fix checking whether the receiver is a child of startup.
Diffstat (limited to 'proc')
-rw-r--r--proc/mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 48a252e1..cb442b00 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -996,7 +996,7 @@ S_proc_mark_important (struct proc *p)
that needs this exemption. That is not an problem however, since
all children of /hurd/startup are important and we mark them as
such anyway. */
- if (! check_uid (p, 0) && ! check_owner (startup_proc, p))
+ if (! check_uid (p, 0) && p->p_parent != startup_proc)
return EPERM;
p->p_important = 1;