Home
last modified time | relevance | path

Searched refs:acred (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/net/sunrpc/
Dauth_generic.c26 struct auth_cred acred; member
42 rpc_lookup_generic_cred(struct auth_cred *acred, int flags, gfp_t gfp) in rpc_lookup_generic_cred() argument
44 return rpcauth_lookup_credcache(&generic_auth, acred, flags, gfp); in rpc_lookup_generic_cred()
59 struct auth_cred acred = { in rpc_lookup_machine_cred() local
68 return generic_auth.au_ops->lookup_cred(&generic_auth, &acred, 0); in rpc_lookup_machine_cred()
76 struct auth_cred *acred = &container_of(cred, struct generic_cred, gc_base)->acred; in generic_bind_cred() local
78 return auth->au_ops->lookup_cred(auth, acred, lookupflags); in generic_bind_cred()
82 generic_hash_cred(struct auth_cred *acred, unsigned int hashbits) in generic_hash_cred() argument
84 return hash_64(from_kgid(&init_user_ns, acred->gid) | in generic_hash_cred()
85 ((u64)from_kuid(&init_user_ns, acred->uid) << in generic_hash_cred()
[all …]
Dauth_unix.c49 unx_hash_cred(struct auth_cred *acred, unsigned int hashbits) in unx_hash_cred() argument
51 return hash_64(from_kgid(&init_user_ns, acred->gid) | in unx_hash_cred()
52 ((u64)from_kuid(&init_user_ns, acred->uid) << in unx_hash_cred()
60 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
62 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in unx_lookup_cred()
66 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in unx_create_cred() argument
73 from_kuid(&init_user_ns, acred->uid), in unx_create_cred()
74 from_kgid(&init_user_ns, acred->gid)); in unx_create_cred()
79 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
82 if (acred->group_info != NULL) in unx_create_cred()
[all …]
Dauth.c548 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
557 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
561 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
586 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
594 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
626 struct auth_cred acred; in rpcauth_lookupcred() local
633 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred()
634 acred.uid = cred->fsuid; in rpcauth_lookupcred()
635 acred.gid = cred->fsgid; in rpcauth_lookupcred()
636 acred.group_info = cred->group_info; in rpcauth_lookupcred()
[all …]
Dauth_null.c37 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument
56 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match() argument
/Linux-v4.19/net/sunrpc/auth_gss/
Dauth_gss.c1339 gss_hash_cred(struct auth_cred *acred, unsigned int hashbits) in gss_hash_cred() argument
1341 return hash_64(from_kuid(&init_user_ns, acred->uid), hashbits); in gss_hash_cred()
1348 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument
1350 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in gss_lookup_cred()
1354 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument
1361 __func__, from_kuid(&init_user_ns, acred->uid), in gss_create_cred()
1367 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1375 if (acred->machine_cred) in gss_create_cred()
1376 cred->gc_principal = acred->principal; in gss_create_cred()
1475 gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) in gss_match() argument
[all …]
/Linux-v4.19/fs/nfsd/
Dnfs4callback.c762 struct auth_cred acred = {}; in get_backchannel_cred() local
764 acred.uid = ses->se_cb_sec.uid; in get_backchannel_cred()
765 acred.gid = ses->se_cb_sec.gid; in get_backchannel_cred()
766 return auth->au_ops->lookup_cred(client->cl_auth, &acred, 0); in get_backchannel_cred()
/Linux-v4.19/fs/nfs/flexfilelayout/
Dflexfilelayout.c416 struct auth_cred acred = { .group_info = ff_zero_group }; in ff_layout_alloc_lseg() local
485 acred.uid = make_kuid(&init_user_ns, id); in ff_layout_alloc_lseg()
492 acred.gid = make_kgid(&init_user_ns, id); in ff_layout_alloc_lseg()
495 rcu_assign_pointer(cred, rpc_lookup_generic_cred(&acred, 0, gfp_flags)); in ff_layout_alloc_lseg()
522 from_kuid(&init_user_ns, acred.uid), in ff_layout_alloc_lseg()
523 from_kgid(&init_user_ns, acred.gid)); in ff_layout_alloc_lseg()