Home
last modified time | relevance | path

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

/linux-4.4.14/net/sunrpc/
Dauth_generic.c26 struct auth_cred acred; member
52 struct auth_cred acred = { in rpc_lookup_machine_cred() local
61 return generic_auth.au_ops->lookup_cred(&generic_auth, &acred, 0); in rpc_lookup_machine_cred()
69 struct auth_cred *acred = &container_of(cred, struct generic_cred, gc_base)->acred; in generic_bind_cred() local
71 return auth->au_ops->lookup_cred(auth, acred, lookupflags); in generic_bind_cred()
78 generic_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in generic_lookup_cred() argument
80 return rpcauth_lookup_credcache(&generic_auth, acred, flags); in generic_lookup_cred()
84 generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in generic_create_cred() argument
92 rpcauth_init_cred(&gcred->gc_base, acred, &generic_auth, &generic_credops); in generic_create_cred()
95 gcred->acred.uid = acred->uid; in generic_create_cred()
[all …]
Dauth_unix.c55 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
57 return rpcauth_lookup_credcache(auth, acred, flags); in unx_lookup_cred()
61 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_create_cred() argument
68 from_kuid(&init_user_ns, acred->uid), in unx_create_cred()
69 from_kgid(&init_user_ns, acred->gid)); in unx_create_cred()
74 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
77 if (acred->group_info != NULL) in unx_create_cred()
78 groups = acred->group_info->ngroups; in unx_create_cred()
82 cred->uc_gid = acred->gid; in unx_create_cred()
84 cred->uc_gids[i] = GROUP_AT(acred->group_info, i); in unx_create_cred()
[all …]
Dauth.c545 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
554 nr = hash_long(from_kuid(&init_user_ns, acred->uid), cache->hashbits); in rpcauth_lookup_credcache()
558 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
583 new = auth->au_ops->crcreate(auth, acred, flags); in rpcauth_lookup_credcache()
591 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
623 struct auth_cred acred; in rpcauth_lookupcred() local
630 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred()
631 acred.uid = cred->fsuid; in rpcauth_lookupcred()
632 acred.gid = cred->fsgid; in rpcauth_lookupcred()
633 acred.group_info = cred->group_info; in rpcauth_lookupcred()
[all …]
Dauth_null.c36 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument
55 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match() argument
/linux-4.4.14/net/sunrpc/auth_gss/
Dauth_gss.c1300 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument
1302 return rpcauth_lookup_credcache(auth, acred, flags); in gss_lookup_cred()
1306 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_create_cred() argument
1313 __func__, from_kuid(&init_user_ns, acred->uid), in gss_create_cred()
1319 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1327 if (acred->machine_cred) in gss_create_cred()
1328 cred->gc_principal = acred->principal; in gss_create_cred()
1427 gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) in gss_match() argument
1446 if (acred->principal != NULL) { in gss_match()
1449 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
[all …]
/linux-4.4.14/fs/nfsd/
Dnfs4callback.c705 struct auth_cred acred = {}; in get_backchannel_cred() local
707 acred.uid = ses->se_cb_sec.uid; in get_backchannel_cred()
708 acred.gid = ses->se_cb_sec.gid; in get_backchannel_cred()
709 return auth->au_ops->lookup_cred(client->cl_auth, &acred, 0); in get_backchannel_cred()
/linux-4.4.14/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c341 struct auth_cred acred = { in ff_layout_update_mirror_cred() local
347 cred = auth->au_ops->lookup_cred(auth, &acred, 0); in ff_layout_update_mirror_cred()