Lines Matching refs:new
25 struct cred *new; in nfsd_setuser() local
33 new = prepare_creds(); in nfsd_setuser()
34 if (!new) in nfsd_setuser()
37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
51 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser()
52 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
71 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser()
72 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
73 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser()
74 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
76 set_groups(new, gi); in nfsd_setuser()
79 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
80 new->cap_effective = cap_drop_nfsd_set(new->cap_effective); in nfsd_setuser()
82 new->cap_effective = cap_raise_nfsd_set(new->cap_effective, in nfsd_setuser()
83 new->cap_permitted); in nfsd_setuser()
85 put_cred(override_creds(new)); in nfsd_setuser()
86 put_cred(new); in nfsd_setuser()
91 abort_creds(new); in nfsd_setuser()