[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 19/21: boot: Fix failing device lookups in unprivileged mode.
From: |
Samuel Thibault |
Subject: |
[hurd] 19/21: boot: Fix failing device lookups in unprivileged mode. |
Date: |
Sat, 04 Mar 2017 21:10:59 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 7845e0f740d104dc712505ab2f8b273a18078fae
Author: Justus Winter <address@hidden>
Date: Fri Mar 3 17:10:53 2017 +0100
boot: Fix failing device lookups in unprivileged mode.
Previously, EMACH_SEND_INVALID_DEST was returned. This had
devastating consequences on the translator linkage of storeio
translators. When accessed, the parent translator tried to start the
translator over and over again, spawning tasks until the system runs
out of resources.
* boot/boot.c (ds_device_open): Return the correct error when trying
to open a non-existent device in unprivileged mode.
---
boot/boot.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/boot/boot.c b/boot/boot.c
index 78bd183..c69c89a 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -938,6 +938,9 @@ ds_device_open (mach_port_t master_port,
return err;
}
+ if (! privileged)
+ return D_NO_SUCH_DEVICE;
+
*devicetype = MACH_MSG_TYPE_MOVE_SEND;
return device_open (master_device_port, mode, name, device);
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (cef4f1d -> db7dd39), Samuel Thibault, 2017/03/04
- [hurd] 03/21: ext2fs: Fix typo., Samuel Thibault, 2017/03/04
- [hurd] 06/21: ext2fs: Do not read translator record on Linux filesystems., Samuel Thibault, 2017/03/04
- [hurd] 10/21: ext2fs: fix block reference, Samuel Thibault, 2017/03/04
- [hurd] 16/21: libshouldbeinlibc: Fix NDEBUG build., Samuel Thibault, 2017/03/04
- [hurd] 08/21: ext2fs: Fix block allocation., Samuel Thibault, 2017/03/04
- [hurd] 12/21: ext2fs: fix extended attribute retrieval, Samuel Thibault, 2017/03/04
- [hurd] 11/21: ext2fs: minor cleanup, Samuel Thibault, 2017/03/04
- [hurd] 15/21: Fix mig URL, Samuel Thibault, 2017/03/04
- [hurd] 19/21: boot: Fix failing device lookups in unprivileged mode.,
Samuel Thibault <=
- [hurd] 09/21: ext2fs: Fix potential block leak., Samuel Thibault, 2017/03/04
- [hurd] 14/21: Merge remote-tracking branch 'remotes/darnassus/ext2fs-xattrs', Samuel Thibault, 2017/03/04
- [hurd] 05/21: ext2fs: Fix block leak in xattr code., Samuel Thibault, 2017/03/04
- [hurd] 21/21: Avoid ports_interrupt_rpcs cancel itself, Samuel Thibault, 2017/03/04
- [hurd] 07/21: ext2fs: Require users to opt-in for xattr-based translator records., Samuel Thibault, 2017/03/04
- [hurd] 20/21: boot: Make the halt message nicer., Samuel Thibault, 2017/03/04
- [hurd] 13/21: ext2fs: downgrade warnings about old translator records to debug messages, Samuel Thibault, 2017/03/04
- [hurd] 18/21: boot: Add a verbose option., Samuel Thibault, 2017/03/04
- [hurd] 04/21: ext2fs: Use correct type for sizes., Samuel Thibault, 2017/03/04
- [hurd] 02/21: ext2fs: Use xattr to store passive translator, Samuel Thibault, 2017/03/04