Lines Matching refs:auth
21 #include <linux/sunrpc/auth.h>
248 struct gss_auth *auth;
284 struct net *net = gss_msg->auth->net;
292 gss_put_auth(gss_msg->auth);
298 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth)
304 if (pos->auth->service != auth->service)
323 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth);
419 struct gss_api_mech *mech = gss_msg->auth->mech;
497 gss_msg->auth->target_name,
526 gss_msg->auth = gss_auth;
757 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech);
1016 struct rpc_auth * auth;
1041 auth = &gss_auth->rpc_auth;
1042 auth->au_cslack = GSS_CRED_SLACK >> 2;
1043 auth->au_rslack = GSS_KRB5_MAX_SLACK_NEEDED >> 2;
1044 auth->au_verfsize = GSS_VERF_SLACK >> 2;
1045 auth->au_ralign = GSS_VERF_SLACK >> 2;
1046 __set_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags);
1047 auth->au_ops = &authgss_ops;
1048 auth->au_flavor = flavor;
1050 __set_bit(RPCAUTH_AUTH_DATATOUCH, &auth->au_flags);
1051 refcount_set(&auth->au_count, 1);
1054 err = rpcauth_init_credcache(auth);
1082 rpcauth_destroy_credcache(auth);
1124 gss_destroy(struct rpc_auth *auth)
1126 struct gss_auth *gss_auth = container_of(auth,
1139 rpcauth_destroy_credcache(auth);
1149 * The auth is looked up from the oldest parent sharing the same
1150 * cl_xprt, and the auth itself references only that common parent
1357 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags)
1359 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS);
1363 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp)
1365 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth);
1372 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops);
1388 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred)
1390 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth);
1595 struct rpc_auth *auth = oldcred->cr_auth;
1602 new = gss_lookup_cred(auth, &acred, RPCAUTH_LOOKUP_NEW);
1932 struct rpc_auth *auth = cred->cr_auth;
1934 if (test_and_clear_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags)) {
1935 auth->au_ralign = auth->au_verfsize + before;
1936 auth->au_rslack = auth->au_verfsize + after;
1937 trace_rpcgss_update_slack(task, auth);
2262 MODULE_ALIAS("rpc-auth-6");