Lines Matching refs:cred

77 static int umh_keys_init(struct subprocess_info *info, struct cred *cred)  in umh_keys_init()  argument
81 return install_session_keyring_to_cred(cred, keyring); in umh_keys_init()
119 const struct cred *cred = current_cred(); in call_sbin_request_key() local
136 cred = get_current_cred(); in call_sbin_request_key()
137 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key()
140 put_cred(cred); in call_sbin_request_key()
152 sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid)); in call_sbin_request_key()
153 sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid)); in call_sbin_request_key()
160 cred->thread_keyring ? cred->thread_keyring->serial : 0); in call_sbin_request_key()
163 if (cred->process_keyring) in call_sbin_request_key()
164 prkey = cred->process_keyring->serial; in call_sbin_request_key()
167 session = cred->session_keyring; in call_sbin_request_key()
265 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
280 switch (cred->jit_keyring) { in construct_get_dest_keyring()
283 if (cred->request_key_auth) { in construct_get_dest_keyring()
284 authkey = cred->request_key_auth; in construct_get_dest_keyring()
300 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
306 dest_keyring = key_get(cred->process_keyring); in construct_get_dest_keyring()
312 dest_keyring = key_get(cred->session_keyring); in construct_get_dest_keyring()
393 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred, in construct_alloc_key()
572 .cred = current_cred(), in request_key_and_link()
775 .cred = current_cred(), in request_key_rcu()