Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Sat, 4 May 1996 09:25:00 +0000 (09:25 +0000)
committerroland <roland>
Sat, 4 May 1996 09:25:00 +0000 (09:25 +0000)
* hurd/setauth.c (_hurd_setauth): Don't pass object ports in
auth_user_authenticate RPCs, just the one-off rendezvous port.
* hurd/dtable.c (reauth_dtable): Likewise.
* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.

hurd/dtable.c
hurd/hurdlookup.c
hurd/setauth.c

index ea683d0..d1ee999 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -173,7 +173,7 @@ static void
 ctty_new_pgrp (void)
 {
   int i;
-  
+
   HURD_CRITICAL_BEGIN;
   __mutex_lock (&_hurd_dtable_lock);
 
@@ -226,7 +226,7 @@ reauth_dtable (void)
     {
       struct hurd_fd *const d = _hurd_dtable[i];
       mach_port_t new, newctty, ref;
-      
+
       if (d == NULL)
        /* Nothing to do for an unused descriptor cell.  */
        continue;
@@ -235,14 +235,13 @@ reauth_dtable (void)
 
       /* Take the descriptor cell's lock.  */
       __spin_lock (&d->port.lock);
-      
+
       /* Reauthenticate the descriptor's port.  */
       if (d->port.port != MACH_PORT_NULL &&
          ! __io_reauthenticate (d->port.port,
                                 ref, MACH_MSG_TYPE_MAKE_SEND) &&
          ! __USEPORT (AUTH, __auth_user_authenticate
                       (port,
-                       d->port.port,
                        ref, MACH_MSG_TYPE_MAKE_SEND,
                        &new)))
        {
@@ -254,7 +253,6 @@ reauth_dtable (void)
                                     ref, MACH_MSG_TYPE_MAKE_SEND) &&
              ! __USEPORT (AUTH, __auth_user_authenticate
                           (port,
-                           d->ctty.port,
                            ref, MACH_MSG_TYPE_MAKE_SEND,
                            &newctty)))
            _hurd_port_set (&d->ctty, newctty);
index 41ea327..a5a114a 100644 (file)
@@ -100,7 +100,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
       mach_port_t ref = __mach_reply_port ();
       error_t reauth (auth_t auth)
        {
-         return __auth_user_authenticate (auth, unauth, ref,
+         return __auth_user_authenticate (auth, ref,
                                           MACH_MSG_TYPE_MAKE_SEND,
                                           result);
        }
index 34ce7f6..3591968 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -73,7 +73,6 @@ _hurd_setauth (auth_t new)
              ! HURD_PORT_USE (&_hurd_ports[INIT_PORT_AUTH],
                               __auth_user_authenticate
                               (port,
-                               _hurd_init_dtable[d],
                                ref, MACH_MSG_TYPE_MAKE_SEND,
                                &new)))
            {
@@ -88,7 +87,7 @@ _hurd_setauth (auth_t new)
   if (__USEPORT (CRDIR,
                 ! __io_reauthenticate (port,
                                        ref, MACH_MSG_TYPE_MAKE_SEND) &&
-                ! __auth_user_authenticate (new, port,
+                ! __auth_user_authenticate (new,
                                             ref, MACH_MSG_TYPE_MAKE_SEND,
                                             &newport)))
     _hurd_port_set (&_hurd_ports[INIT_PORT_CRDIR], newport);
@@ -98,7 +97,7 @@ _hurd_setauth (auth_t new)
   if (__USEPORT (CWDIR,
                 ! __io_reauthenticate (port,
                                        ref, MACH_MSG_TYPE_MAKE_SEND) &&
-                ! __auth_user_authenticate (new, port,
+                ! __auth_user_authenticate (new,
                                             ref, MACH_MSG_TYPE_MAKE_SEND,
                                             &newport)))
     _hurd_port_set (&_hurd_ports[INIT_PORT_CWDIR], newport);