Lines Matching refs:cred

80 static int umh_keys_init(struct subprocess_info *info, struct cred *cred)  in umh_keys_init()  argument
84 return install_session_keyring_to_cred(cred, keyring); in umh_keys_init()
122 const struct cred *cred = current_cred(); in call_sbin_request_key() local
139 cred = get_current_cred(); in call_sbin_request_key()
140 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key()
143 put_cred(cred); in call_sbin_request_key()
155 sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid)); in call_sbin_request_key()
156 sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid)); in call_sbin_request_key()
163 cred->thread_keyring ? cred->thread_keyring->serial : 0); in call_sbin_request_key()
166 if (cred->process_keyring) in call_sbin_request_key()
167 prkey = cred->process_keyring->serial; in call_sbin_request_key()
170 session = cred->session_keyring; in call_sbin_request_key()
268 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
283 switch (cred->jit_keyring) { in construct_get_dest_keyring()
286 if (cred->request_key_auth) { in construct_get_dest_keyring()
287 authkey = cred->request_key_auth; in construct_get_dest_keyring()
303 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
309 dest_keyring = key_get(cred->process_keyring); in construct_get_dest_keyring()
315 dest_keyring = key_get(cred->session_keyring); in construct_get_dest_keyring()
396 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred, in construct_alloc_key()
588 .cred = current_cred(), in request_key_and_link()
791 .cred = current_cred(), in request_key_rcu()