Lines Matching refs:new
25 struct cred *new; in nfsd_setuser() local
31 new = prepare_creds(); in nfsd_setuser()
32 if (!new) in nfsd_setuser()
35 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
36 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
49 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser()
50 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
69 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser()
70 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
71 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser()
72 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
74 set_groups(new, gi); in nfsd_setuser()
77 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
78 new->cap_effective = cap_drop_nfsd_set(new->cap_effective); in nfsd_setuser()
80 new->cap_effective = cap_raise_nfsd_set(new->cap_effective, in nfsd_setuser()
81 new->cap_permitted); in nfsd_setuser()
82 put_cred(override_creds(new)); in nfsd_setuser()
83 put_cred(new); in nfsd_setuser()
87 abort_creds(new); in nfsd_setuser()