Searched refs:creds (Results 1 – 8 of 8) sorted by relevance
52 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds()53 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds()58 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds()162 scm->creds.pid = pid_vnr(pid); in scm_replace_pid()200 struct ucred creds; in __scm_send() local206 err = scm_check_creds(&creds); in __scm_send()210 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send()213 pid = find_get_pid(creds.pid); in __scm_send()233 p->creds.uid = uid; in __scm_send()234 p->creds.gid = gid; in __scm_send()[all …]
169 struct svc_cred *creds) in gssx_dec_linux_creds() argument205 creds->cr_group_info = groups_alloc(N); in gssx_dec_linux_creds()206 if (creds->cr_group_info == NULL) in gssx_dec_linux_creds()219 creds->cr_group_info->gid[i] = kgid; in gssx_dec_linux_creds()221 groups_sort(creds->cr_group_info); in gssx_dec_linux_creds()225 groups_free(creds->cr_group_info); in gssx_dec_linux_creds()232 struct svc_cred *creds; in gssx_dec_option_array() local252 if (!creds) { in gssx_dec_option_array()259 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array()283 err = gssx_dec_linux_creds(xdr, creds); in gssx_dec_option_array()[all …]
339 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall()353 data->creds.cr_raw_principal = in gssp_accept_sec_context_upcall()355 data->creds.cr_principal = in gssp_accept_sec_context_upcall()357 gssp_hostbased_service(&data->creds.cr_principal); in gssp_accept_sec_context_upcall()360 data->creds.cr_targ_princ = in gssp_accept_sec_context_upcall()362 gssp_hostbased_service(&data->creds.cr_targ_princ); in gssp_accept_sec_context_upcall()376 free_svc_cred(&data->creds); in gssp_free_upcall_data()
22 struct svc_cred creds; member
1255 rsci.cred = ud->creds; in gss_proxy_save_rsc()1256 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
270 struct scm_creds *creds; in hci_sock_copy_creds() local275 creds = &bt_cb(skb)->creds; in hci_sock_copy_creds()287 if (creds->pid == pid_vnr(sk->sk_peer_pid)) in hci_sock_copy_creds()290 memset(creds, 0, sizeof(*creds)); in hci_sock_copy_creds()292 creds->pid = pid_vnr(sk->sk_peer_pid); in hci_sock_copy_creds()294 creds->uid = sk->sk_peer_cred->uid; in hci_sock_copy_creds()295 creds->gid = sk->sk_peer_cred->gid; in hci_sock_copy_creds()1605 scm.creds = bt_cb(skb)->creds; in hci_sock_recvmsg()
179 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb()1877 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg()1970 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
2009 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb()2010 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb()2066 uid_eq(UNIXCB(skb).uid, scm->creds.uid) && in unix_skb_scm_eq()2067 gid_eq(UNIXCB(skb).gid, scm->creds.gid) && in unix_skb_scm_eq()
Completed in 34 milliseconds