[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 16/19: proc: Fix permission check.
From: |
Samuel Thibault |
Subject: |
[hurd] 16/19: proc: Fix permission check. |
Date: |
Wed, 10 Aug 2016 00:05:51 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit c9cd19504f87705f73294c639c9a0bc33a27aed3
Author: Justus Winter <address@hidden>
Date: Mon Aug 8 18:02:38 2016 +0200
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(-)
diff --git a/proc/mgt.c b/proc/mgt.c
index 48a252e..cb442b0 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;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 19/19: trans/crash: core file name templates, (continued)
- [hurd] 19/19: trans/crash: core file name templates, Samuel Thibault, 2016/08/09
- [hurd] 05/19: Revert "drop the deprecated malloc/free hooks in hurd/mach-defpager", Samuel Thibault, 2016/08/09
- [hurd] 09/19: trans/crash: fix resource leaks, Samuel Thibault, 2016/08/09
- [hurd] 06/19: Complete allocation hooks, Samuel Thibault, 2016/08/09
- [hurd] 12/19: pfinet: fix memory leak, Samuel Thibault, 2016/08/09
- [hurd] 13/19: proc: Fix references to the startup server., Samuel Thibault, 2016/08/09
- [hurd] 02/19: ext2fs: fix pager use-after-free, Samuel Thibault, 2016/08/09
- [hurd] 01/19: libdiskfs: fix error handling, Samuel Thibault, 2016/08/09
- [hurd] 07/19: Fix pipe_send() with no data, Samuel Thibault, 2016/08/09
- [hurd] 11/19: trans/crash: fix blunder, Samuel Thibault, 2016/08/09
- [hurd] 16/19: proc: Fix permission check.,
Samuel Thibault <=
- [hurd] 14/19: libpager: provide 'pager_create_alloc', Samuel Thibault, 2016/08/09
- [hurd] 03/19: Make <sys/procfs.h> self-contained again, Samuel Thibault, 2016/08/09
- [hurd] 04/19: Revert part of "fix compiler warnings in hurd/exec", Samuel Thibault, 2016/08/09
- [hurd] 15/19: startup: Make the kernel a child of startup., Samuel Thibault, 2016/08/09
- [hurd] 17/19: sutils: New utility 'bless'., Samuel Thibault, 2016/08/09
- [hurd] 10/19: Do not make io_select return errors on unsupported READ/WRITE mode, Samuel Thibault, 2016/08/09
- [hurd] 08/19: nfs: appease the stricter reference counting mechanism, Samuel Thibault, 2016/08/09