summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;