/Linux-v4.19/net/core/ |
D | scm.c | 48 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds() argument 51 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds() 52 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds() 57 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds() 167 struct ucred creds; in __scm_send() local 172 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send() 173 err = scm_check_creds(&creds); in __scm_send() 177 p->creds.pid = creds.pid; in __scm_send() 178 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send() 181 pid = find_get_pid(creds.pid); in __scm_send() [all …]
|
/Linux-v4.19/include/net/ |
D | scm.h | 34 struct scm_creds creds; /* Skb credentials */ member 60 scm->creds.pid = pid_vnr(pid); in scm_set_cred() 61 scm->creds.uid = uid; in scm_set_cred() 62 scm->creds.gid = gid; in scm_set_cred() 82 scm->creds.uid = INVALID_UID; in scm_send() 83 scm->creds.gid = INVALID_GID; in scm_send() 126 .pid = scm->creds.pid, in scm_recv() 127 .uid = from_kuid_munged(current_ns, scm->creds.uid), in scm_recv() 128 .gid = from_kgid_munged(current_ns, scm->creds.gid), in scm_recv()
|
/Linux-v4.19/drivers/soc/bcm/brcmstb/ |
D | biuctrl.c | 91 u32 creds = 0; in mcp_write_pairing_set() local 96 creds = cbc_readl(CPU_CREDIT_REG); in mcp_write_pairing_set() 99 cbc_writel(creds | CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set() 101 } else if (creds & CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK) { in mcp_write_pairing_set() 103 cbc_writel(creds & ~CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set()
|
/Linux-v4.19/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 346 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 360 data->creds.cr_raw_principal = in gssp_accept_sec_context_upcall() 362 data->creds.cr_principal = in gssp_accept_sec_context_upcall() 364 gssp_hostbased_service(&data->creds.cr_principal); in gssp_accept_sec_context_upcall() 367 data->creds.cr_targ_princ = in gssp_accept_sec_context_upcall() 369 gssp_hostbased_service(&data->creds.cr_targ_princ); in gssp_accept_sec_context_upcall() 383 free_svc_cred(&data->creds); in gssp_free_upcall_data()
|
D | gss_rpc_xdr.c | 182 struct svc_cred *creds) in gssx_dec_linux_creds() argument 203 creds->cr_uid = make_kuid(&init_user_ns, tmp); in gssx_dec_linux_creds() 209 creds->cr_gid = make_kgid(&init_user_ns, tmp); in gssx_dec_linux_creds() 218 creds->cr_group_info = groups_alloc(N); in gssx_dec_linux_creds() 219 if (creds->cr_group_info == NULL) in gssx_dec_linux_creds() 232 creds->cr_group_info->gid[i] = kgid; in gssx_dec_linux_creds() 234 groups_sort(creds->cr_group_info); in gssx_dec_linux_creds() 238 groups_free(creds->cr_group_info); in gssx_dec_linux_creds() 245 struct svc_cred *creds; in gssx_dec_option_array() local 264 creds = kzalloc(sizeof(struct svc_cred), GFP_KERNEL); in gssx_dec_option_array() [all …]
|
D | gss_rpc_upcall.h | 35 struct svc_cred creds; member
|
D | svcauth_gss.c | 1195 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1196 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
|
/Linux-v4.19/include/linux/ |
D | netlink.h | 24 struct scm_creds creds; /* Skb credentials */ member 34 #define NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds)
|
/Linux-v4.19/lib/ |
D | kobject_uevent.c | 299 parms->creds.uid = GLOBAL_ROOT_UID; in alloc_uevent_skb() 300 parms->creds.gid = GLOBAL_ROOT_GID; in alloc_uevent_skb() 362 parms->creds.uid = root_uid; in uevent_net_broadcast_tagged() 367 parms->creds.gid = root_gid; in uevent_net_broadcast_tagged()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | vas-window.c | 1144 int creds, mode; in poll_window_credits() local 1157 creds = GET_FIELD(VAS_TX_WCRED, val); in poll_window_credits() 1160 creds = GET_FIELD(VAS_LRX_WCRED, val); in poll_window_credits() 1163 if (creds < window->wcreds_max) { in poll_window_credits()
|
/Linux-v4.19/net/unix/ |
D | af_unix.c | 1553 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb() 1554 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb() 1601 current_uid_gid(&scm->creds.uid, &scm->creds.gid); in maybe_init_creds() 1612 uid_eq(u->uid, scm->creds.uid) && in unix_skb_scm_eq() 1613 gid_eq(u->gid, scm->creds.gid) && in unix_skb_scm_eq()
|
/Linux-v4.19/Documentation/filesystems/nfs/ |
D | rpc-server-gss.txt | 59 B) It does not properly handle creds where the user is member of more
|
/Linux-v4.19/net/netlink/ |
D | af_netlink.c | 170 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb() 1889 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg() 1983 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
|