diff options
Diffstat (limited to 'fs/nfsd/auth.c')
| -rw-r--r-- | fs/nfsd/auth.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfsd/auth.c b/fs/nfsd/auth.c index 21928056e35..d13403e3362 100644 --- a/fs/nfsd/auth.c +++ b/fs/nfsd/auth.c @@ -11,8 +11,6 @@  #include <linux/nfsd/nfsd.h>  #include <linux/nfsd/export.h> -#define	CAP_NFSD_MASK (CAP_FS_MASK|CAP_TO_MASK(CAP_SYS_RESOURCE)) -  int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp)  {  	struct exp_flavor_info *f; @@ -69,10 +67,12 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)  	ret = set_current_groups(cred.cr_group_info);  	put_group_info(cred.cr_group_info);  	if ((cred.cr_uid)) { -		cap_t(current->cap_effective) &= ~CAP_NFSD_MASK; +		current->cap_effective = +			cap_drop_nfsd_set(current->cap_effective);  	} else { -		cap_t(current->cap_effective) |= (CAP_NFSD_MASK & -						  current->cap_permitted); +		current->cap_effective = +			cap_raise_nfsd_set(current->cap_effective, +					   current->cap_permitted);  	}  	return ret;  }  |