Lines Matching defs:auth

21 #include <linux/sunrpc/auth.h>
265 struct gss_auth *auth;
301 struct net *net = gss_msg->auth->net;
309 gss_put_auth(gss_msg->auth);
315 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth)
321 if (pos->auth->service != auth->service)
340 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth);
436 struct gss_api_mech *mech = gss_msg->auth->mech;
514 gss_msg->auth->target_name,
543 gss_msg->auth = gss_auth;
774 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech);
1033 struct rpc_auth * auth;
1059 auth = &gss_auth->rpc_auth;
1060 auth->au_cslack = GSS_CRED_SLACK >> 2;
1062 auth->au_rslack = GSS_KRB5_MAX_SLACK_NEEDED >> 2;
1063 auth->au_verfsize = GSS_VERF_SLACK >> 2;
1064 auth->au_ralign = GSS_VERF_SLACK >> 2;
1065 __set_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags);
1066 auth->au_ops = &authgss_ops;
1067 auth->au_flavor = flavor;
1069 __set_bit(RPCAUTH_AUTH_DATATOUCH, &auth->au_flags);
1070 refcount_set(&auth->au_count, 1);
1073 err = rpcauth_init_credcache(auth);
1101 rpcauth_destroy_credcache(auth);
1143 gss_destroy(struct rpc_auth *auth)
1145 struct gss_auth *gss_auth = container_of(auth,
1158 rpcauth_destroy_credcache(auth);
1168 * The auth is looked up from the oldest parent sharing the same
1169 * cl_xprt, and the auth itself references only that common parent
1375 static struct rpc_cred *gss_lookup_cred(struct rpc_auth *auth,
1378 return rpcauth_lookup_credcache(auth, acred, flags,
1383 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp)
1385 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth);
1392 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops);
1408 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred)
1410 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth);
1615 struct rpc_auth *auth = oldcred->cr_auth;
1622 new = gss_lookup_cred(auth, &acred, RPCAUTH_LOOKUP_NEW);
1952 struct rpc_auth *auth = cred->cr_auth;
1954 if (test_and_clear_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags)) {
1955 auth->au_ralign = auth->au_verfsize + before;
1956 auth->au_rslack = auth->au_verfsize + after;
1957 trace_rpcgss_update_slack(task, auth);
2282 MODULE_ALIAS("rpc-auth-6");