From c9cd19504f87705f73294c639c9a0bc33a27aed3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 8 Aug 2016 18:02:38 +0200 Subject: proc: Fix permission check. * proc/mgt.c (S_proc_mark_important): Fix checking whether the receiver is a child of startup. --- proc/mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc/mgt.c') 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; -- cgit v1.2.3