diff options
Diffstat (limited to 'boot/boot.c')
-rw-r--r-- | boot/boot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/boot.c b/boot/boot.c index 0a7091e3..eb78a1c6 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -559,9 +559,10 @@ main (int argc, char **argv, char **envp) if (want_privileged) { - get_privileged_ports (&privileged_host_port, &master_device_port); - privileged = MACH_PORT_VALID (master_device_port); + if (get_privileged_ports (&privileged_host_port, &master_device_port)) + error (1, 0, "Must be run as root for privileged subhurds"); + privileged = MACH_PORT_VALID (master_device_port); if (! privileged) error (1, 0, "Must be run as root for privileged subhurds"); } |