Index: daemons/console-run.c
===================================================================
RCS file: /cvsroot/hurd/hurd/daemons/console-run.c,v
retrieving revision 1.5
diff -u -r1.5 console-run.c
--- daemons/console-run.c	26 Mar 2002 18:59:31 -0000	1.5
+++ daemons/console-run.c	9 Aug 2003 13:08:10 -0000
@@ -1,5 +1,5 @@
 /* Run a program on the console, trying hard to get the console open.
-   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
 
    This file is part of the GNU Hurd.
 
@@ -31,12 +31,23 @@
 get_console ()
 {
   mach_port_t device_master, console;
+#ifdef KERNEL_SECURITY_TOKEN_VALUE
+  security_token_t sec_token = KERNEL_SECURITY_TOKEN_VALUE;
+#endif
   error_t err = get_privileged_ports (0, &device_master);
 
   if (err)
     return MACH_PORT_NULL;
 
-  err = device_open (device_master, D_WRITE | D_READ, "console", &console);
+  err = device_open (device_master,
+#ifdef KERN_INVALID_LEDGER
+		     MACH_PORT_NULL,
+#endif
+		     D_WRITE | D_READ,
+#ifdef KERNEL_SECURITY_TOKEN_VALUE
+		     sec_token,
+#endif
+		     "console", &console);
   if (err)
     return MACH_PORT_NULL;
 

