nfsd4: allow fh_verify caller to skip pseudoflavor checks
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Apr 2011 20:32:54 +0000 (16:32 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 11 Apr 2011 12:42:20 +0000 (08:42 -0400)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsfh.c
fs/nfsd/vfs.h

index 55c8e63af0be76d566e7723916675a0627145a12..90c6aa6d5e0f9c413f0427081368bb1bc894566e 100644 (file)
@@ -344,7 +344,7 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
         * which clients virtually always use auth_sys for,
         * even while using RPCSEC_GSS for NFS.
         */
-       if (access & NFSD_MAY_LOCK)
+       if (access & NFSD_MAY_LOCK || access & NFSD_MAY_BYPASS_GSS)
                goto skip_pseudoflavor_check;
        /*
         * Clients may expect to be able to use auth_sys during mount,
index 1036913e6e86c69f7df741e7327aa9e32ffa94f2..4d2509f766d4bf5bd42c74b24fdcf36953269b14 100644 (file)
@@ -24,6 +24,7 @@
 #define NFSD_MAY_LOCAL_ACCESS  128 /* IRIX doing local access check on device special file*/
 #define NFSD_MAY_BYPASS_GSS_ON_ROOT 256
 #define NFSD_MAY_NOT_BREAK_LEASE 512
+#define NFSD_MAY_BYPASS_GSS    1024
 
 #define NFSD_MAY_CREATE                (NFSD_MAY_EXEC|NFSD_MAY_WRITE)
 #define NFSD_MAY_REMOVE                (NFSD_MAY_EXEC|NFSD_MAY_WRITE|NFSD_MAY_TRUNC)
This page took 0.031219 seconds and 5 git commands to generate.