Home
last modified time | relevance | path

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

/linux-3.4.99/net/sunrpc/
Dauth_generic.c26 struct auth_cred acred; member
46 struct auth_cred acred = { in rpc_lookup_machine_cred() local
55 return generic_auth.au_ops->lookup_cred(&generic_auth, &acred, 0); in rpc_lookup_machine_cred()
63 struct auth_cred *acred = &container_of(cred, struct generic_cred, gc_base)->acred; in generic_bind_cred() local
65 return auth->au_ops->lookup_cred(auth, acred, lookupflags); in generic_bind_cred()
72 generic_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in generic_lookup_cred() argument
74 return rpcauth_lookup_credcache(&generic_auth, acred, flags); in generic_lookup_cred()
78 generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in generic_create_cred() argument
86 rpcauth_init_cred(&gcred->gc_base, acred, &generic_auth, &generic_credops); in generic_create_cred()
89 gcred->acred.uid = acred->uid; in generic_create_cred()
[all …]
Dauth_unix.c54 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
56 return rpcauth_lookup_credcache(auth, acred, flags); in unx_lookup_cred()
60 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_create_cred() argument
67 acred->uid, acred->gid); in unx_create_cred()
72 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
75 if (acred->group_info != NULL) in unx_create_cred()
76 groups = acred->group_info->ngroups; in unx_create_cred()
80 cred->uc_gid = acred->gid; in unx_create_cred()
82 cred->uc_gids[i] = GROUP_AT(acred->group_info, i); in unx_create_cred()
115 unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags) in unx_match() argument
[all …]
Dauth.c351 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
361 nr = hash_long(acred->uid, cache->hashbits); in rpcauth_lookup_credcache()
365 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
381 new = auth->au_ops->crcreate(auth, acred, flags); in rpcauth_lookup_credcache()
389 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
420 struct auth_cred acred; in rpcauth_lookupcred() local
427 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred()
428 acred.uid = cred->fsuid; in rpcauth_lookupcred()
429 acred.gid = cred->fsgid; in rpcauth_lookupcred()
430 acred.group_info = get_group_info(((struct cred *)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
53 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match() argument
/linux-3.4.99/net/sunrpc/auth_gss/
Dauth_gss.c1040 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument
1042 return rpcauth_lookup_credcache(auth, acred, flags); in gss_lookup_cred()
1046 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_create_cred() argument
1053 acred->uid, auth->au_flavor); in gss_create_cred()
1058 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1066 if (acred->machine_cred) in gss_create_cred()
1067 cred->gc_principal = acred->principal; in gss_create_cred()
1090 gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) in gss_match() argument
1102 if (acred->principal != NULL) { in gss_match()
1105 return strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
[all …]