diff options
author | Justus Winter <justus@gnupg.org> | 2016-08-08 18:02:38 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-08-08 18:04:07 +0200 |
commit | c9cd19504f87705f73294c639c9a0bc33a27aed3 (patch) | |
tree | f2f0133ae06f706d502fc5109aebe3eb49e6e433 /proc | |
parent | 1912e6a69419d4448795ae1451c7b7c57ac16a52 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |