Searched refs:creds (Results 1 – 7 of 7) sorted by relevance
/net/core/ |
D | scm.c | 46 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds() argument 49 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds() 50 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds() 55 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds() 170 struct ucred creds; in __scm_send() local 175 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send() 176 err = scm_check_creds(&creds); in __scm_send() 180 p->creds.pid = creds.pid; in __scm_send() 181 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send() 184 pid = find_get_pid(creds.pid); in __scm_send() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 169 struct svc_cred *creds) in gssx_dec_linux_creds() argument 190 creds->cr_uid = make_kuid(&init_user_ns, tmp); in gssx_dec_linux_creds() 196 creds->cr_gid = make_kgid(&init_user_ns, tmp); in gssx_dec_linux_creds() 205 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() local 251 creds = kzalloc(sizeof(struct svc_cred), GFP_KERNEL); in gssx_dec_option_array() [all …]
|
D | gss_rpc_upcall.c | 333 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 347 data->creds.cr_raw_principal = in gssp_accept_sec_context_upcall() 349 data->creds.cr_principal = in gssp_accept_sec_context_upcall() 351 gssp_hostbased_service(&data->creds.cr_principal); in gssp_accept_sec_context_upcall() 354 data->creds.cr_targ_princ = in gssp_accept_sec_context_upcall() 356 gssp_hostbased_service(&data->creds.cr_targ_princ); in gssp_accept_sec_context_upcall() 370 free_svc_cred(&data->creds); in gssp_free_upcall_data()
|
D | gss_rpc_upcall.h | 22 struct svc_cred creds; member
|
D | svcauth_gss.c | 1311 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1312 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
|
/net/unix/ |
D | af_unix.c | 1596 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb() 1597 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb() 1644 current_uid_gid(&scm->creds.uid, &scm->creds.gid); in maybe_init_creds() 1655 uid_eq(u->uid, scm->creds.uid) && in unix_skb_scm_eq() 1656 gid_eq(u->gid, scm->creds.gid) && in unix_skb_scm_eq()
|
/net/netlink/ |
D | af_netlink.c | 169 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb() 1897 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg() 1990 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
|