~ubuntu-branches/ubuntu/feisty/openafs/feisty

« back to all changes in this revision

Viewing changes to src/afs/afs_nfsclnt.c

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2007-03-26 18:56:55 UTC
  • Revision ID: package-import@ubuntu.com-20070326185655-osce8n0y0dptgurh
* New upstream release.  (Closes: #415699)
  - Support newer Linux kernels.  (Closes: #409797, #410120)
  - Add aklog fallbacks for null realms to support the referral
    capability in MIT Kerberos 1.6 and later.  (Closes: #410314)
* Apply patch from Thomas Sesselmann to support setting options to pass
  to bosserver in /etc/default/openafs-fileserver.  (Closes: #409357)
* Remove the rx_Init calls in the PAM module.  The internal counters
  that had to be initialized that way have been removed.
* Now that we're running regen.sh as part of the build process, only
  patch the Autoconf source files and not the generated output to make
  the diff easier to audit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "afs/param.h"
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/afs/afs_nfsclnt.c,v 1.12.2.1 2005/04/03 18:15:36 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/afs/afs_nfsclnt.c,v 1.12.2.2 2006/12/20 20:09:06 shadow Exp $");
15
15
 
16
16
#if !defined(AFS_NONFSTRANS) || defined(AFS_AIX_IAUTH_ENV)
17
17
#include "afs/sysincludes.h"    /* Standard vendor system headers */
176
176
    extern struct unixuser *afs_FindUser(), *afs_GetUser();
177
177
    register struct unixuser *au = 0;
178
178
    afs_int32 pag, code = 0;
 
179
    uid_t uid;
179
180
 
180
181
    AFS_ASSERT_GLOCK();
181
182
    AFS_STATCNT(afs_nfsclient_reqhandler);
206
207
                pag = NOPAG;    /*  No unixuser struct so pag not trusted  */
207
208
        }
208
209
    }
209
 
    np = afs_FindNfsClientPag((*cred)->cr_uid, host, 0);
 
210
#if defined(AFS_SUN510_ENV)
 
211
    uid = crgetuid(*cred);
 
212
#else
 
213
    uid = (*cred)->cr_uid;
 
214
#endif
 
215
    np = afs_FindNfsClientPag(uid, host, 0);
210
216
    afs_Trace4(afs_iclSetp, CM_TRACE_NFSREQH, ICL_TYPE_INT32, pag,
211
 
               ICL_TYPE_LONG, (*cred)->cr_uid, ICL_TYPE_INT32, host,
 
217
               ICL_TYPE_LONG, uid, ICL_TYPE_INT32, host,
212
218
               ICL_TYPE_POINTER, np);
213
219
    if (!np) {
214
220
        /* Even if there is a "good" pag coming in we don't accept it if no nfsclientpag struct exists for the user since that would mean that the translator rebooted and therefore we ignore all older pag values */