~ubuntu-branches/debian/experimental/nfs-utils/experimental

« back to all changes in this revision

Viewing changes to utils/gssd/svcgssd_proc.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-08 14:26:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708142640-r171kjj2a13gy2kz
Tags: 1:1.0.9-1
* Updated co-mantainer mail address.
* New upstream release.
  - Added 'mount.nfs' utility which can be used as a mount helper
    to mount nfs filesystems. It does not yet support 'user' mounts.
  - Makefile/autoconf tidyups
  - No compiles with no warnings
  - deleted debian/* at request of debian maintainer
  - deleted assorted other unused files
  - mountd can be run multi-threaded for configurations with many hundreds
    of clients (mountd -t 20).  Default is single-threaded
  - Support for selection NFS version to be exported, and protocol to
    use.  This requires kernel patches that should be in linux 2.6.19.
  - Use 65534 rather than -2 for default anon.  This makes no difference in many
    cases, but is important in some.
  - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
  - nfsstat reports NFSv4 operation statistics that should be available in
    linux 2.6.18.
  - assorted other fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
                return -1;
141
141
        }
142
142
        *bp = '\0';
143
 
        printerr(1, "writing message: %s", buf);
 
143
        printerr(3, "writing message: %s", buf);
144
144
        if (write(g, buf, bp - buf) == -1) {
145
145
                printerr(0, "WARNING: failed to write message\n");
146
146
                close(g);
220
220
        nfs4_init_name_mapping(NULL); /* XXX: should only do this once */
221
221
        res = nfs4_gss_princ_to_ids(secname, sname, &uid, &gid);
222
222
        if (res < 0) {
223
 
                printerr(0, "WARNING: get_ids: failed to map name '%s' "
224
 
                        "to uid/gid: %s\n", sname, strerror(-res));
225
223
                /*
226
224
                 * -ENOENT means there was no mapping, any other error
227
225
                 * value means there was an error trying to do the
228
226
                 * mapping.
 
227
                 * If there was no mapping, we send down the value -1
 
228
                 * to indicate that the anonuid/anongid for the export
 
229
                 * should be used.
229
230
                 */
230
231
                if (res == -ENOENT) {
231
 
                        cred->cr_uid = 65534;      /* XXX */
232
 
                        cred->cr_gid = 65534;      /* XXX */
233
 
                        cred->cr_groups[0] = 65534;/* XXX */
234
 
                        cred->cr_ngroups = 1;
 
232
                        cred->cr_uid = -1;
 
233
                        cred->cr_gid = -1;
 
234
                        cred->cr_ngroups = 0;
235
235
                        res = 0;
236
236
                        goto out_free;
237
237
                }
 
238
                printerr(0, "WARNING: get_ids: failed to map name '%s' "
 
239
                        "to uid/gid: %s\n", sname, strerror(-res));
238
240
                goto out_free;
239
241
        }
240
242
        cred->cr_uid = uid;