summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-11 18:07:25 +0200
committerJustus Winter <justus@gnupg.org>2017-08-11 22:07:11 +0200
commite2823ba8f994292ecb92b83dfa3174e6f11c92fd (patch)
tree9230c3163d76e149511eb6e32aad4f32b80d3198
parentbb9dba5a97b5605d12aa68b2978bda329a9f1f31 (diff)
startup: Fix retrieving the privileged ports.
* startup/startup.c: Give the privileged ports to the glibc so that other code can get them.
-rw-r--r--startup/startup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/startup/startup.c b/startup/startup.c
index 5c46c0f1..c76c8304 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -117,8 +117,10 @@ static struct ntfy_task *ntfy_tasks;
/* Our receive right */
static mach_port_t startup;
-/* Ports to the kernel */
-static mach_port_t host_priv, device_master;
+/* Ports to the kernel. We use alias to the internal glibc locations
+ so that other code can get them using get_privileged_ports. */
+#define host_priv _hurd_host_priv
+#define device_master _hurd_device_master
/* Args to bootstrap, expressed as flags */
static int bootstrap_args = 0;