]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/nfsfh.c
CRED: Separate task security context from task_struct
[linux-2.6-omap-h63xx.git] / fs / nfsd / nfsfh.c
index cd25d91895a19fc0906b3e5b1891bed123cff15b..e67cfaea086511d57630ecc02c4fe2685f544d84 100644 (file)
@@ -186,9 +186,9 @@ static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp)
                 * access control settings being in effect, we cannot
                 * fix that case easily.
                 */
-               current->cap_effective =
-                       cap_raise_nfsd_set(current->cap_effective,
-                                          current->cap_permitted);
+               current->cred->cap_effective =
+                       cap_raise_nfsd_set(current->cred->cap_effective,
+                                          current->cred->cap_permitted);
        } else {
                error = nfsd_setuser_and_check_port(rqstp, exp);
                if (error)