]> err.no Git - linux-2.6/blobdiff - fs/nfsd/nfsfh.c
knfsd: nfsd: display export secinfo information
[linux-2.6] / fs / nfsd / nfsfh.c
index 22cb5be79ad0be2f98d85d6a0d9ab5a08764028e..8d2b49914843c91957b9c5b6cf1dad3b5ecb6b9e 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/svc.h>
+#include <linux/sunrpc/svcauth_gss.h>
 #include <linux/nfsd/nfsd.h>
 
 #define NFSDDBG_FACILITY               NFSDDBG_FH
@@ -248,8 +249,13 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
        if (error)
                goto out;
 
+       /* Check security flavor */
+       error = check_nfsd_access(exp, rqstp);
+       if (error)
+               goto out;
+
        /* Finally, check access permissions. */
-       error = nfsd_permission(exp, dentry, access);
+       error = nfsd_permission(rqstp, exp, dentry, access);
 
        if (error) {
                dprintk("fh_verify: %s/%s permission failure, "