/linux/net/core/ |
A D | scm.c | 48 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds() 49 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds() 54 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds() 164 struct ucred creds; in __scm_send() local 170 err = scm_check_creds(&creds); in __scm_send() 174 p->creds.pid = creds.pid; in __scm_send() 175 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send() 178 pid = find_get_pid(creds.pid); in __scm_send() 186 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send() 191 p->creds.uid = uid; in __scm_send() [all …]
|
/linux/include/net/ |
A 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/net/sunrpc/auth_gss/ |
A 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() 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 252 if (!creds) { in gssx_dec_option_array() 259 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array() [all …]
|
A D | gss_rpc_upcall.c | 338 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 352 data->creds.cr_raw_principal = in gssp_accept_sec_context_upcall() 354 data->creds.cr_principal = in gssp_accept_sec_context_upcall() 356 gssp_hostbased_service(&data->creds.cr_principal); in gssp_accept_sec_context_upcall() 359 data->creds.cr_targ_princ = in gssp_accept_sec_context_upcall() 361 gssp_hostbased_service(&data->creds.cr_targ_princ); in gssp_accept_sec_context_upcall() 375 free_svc_cred(&data->creds); in gssp_free_upcall_data()
|
A D | gss_rpc_upcall.h | 22 struct svc_cred creds; member
|
A D | svcauth_gss.c | 1312 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1313 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
|
/linux/drivers/soc/bcm/brcmstb/ |
A D | biuctrl.c | 116 u32 creds = 0; in mcp_write_pairing_set() local 121 creds = cbc_readl(CPU_CREDIT_REG); in mcp_write_pairing_set() 124 cbc_writel(creds | CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set() 126 } else if (creds & CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK) { in mcp_write_pairing_set() 128 cbc_writel(creds & ~CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set()
|
/linux/lib/ |
A D | kobject_uevent.c | 301 parms->creds.uid = GLOBAL_ROOT_UID; in alloc_uevent_skb() 302 parms->creds.gid = GLOBAL_ROOT_GID; in alloc_uevent_skb() 364 parms->creds.uid = root_uid; in uevent_net_broadcast_tagged() 369 parms->creds.gid = root_gid; in uevent_net_broadcast_tagged()
|
/linux/include/linux/ |
A D | netlink.h | 26 struct scm_creds creds; /* Skb credentials */ member 36 #define NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds)
|
/linux/arch/powerpc/platforms/powernv/ |
A D | vas-window.c | 1158 int creds, mode; in poll_window_credits() local 1172 creds = GET_FIELD(VAS_TX_WCRED, val); in poll_window_credits() 1175 creds = GET_FIELD(VAS_LRX_WCRED, val); in poll_window_credits() 1185 if (creds < window->vas_win.wcreds_max) { in poll_window_credits() 1198 creds, count); in poll_window_credits()
|
/linux/fs/ |
A D | io_uring.c | 6649 put_cred(req->creds); in io_clean_op() 6663 creds = override_creds(req->creds); in io_issue_sqe() 6786 if (creds) in io_issue_sqe() 6787 revert_creds(creds); in io_issue_sqe() 7180 if (!req->creds) in io_init_req() 7182 get_cred(req->creds); in io_init_req() 7444 if (creds) in __io_sq_thread() 9435 if (creds) { in io_unregister_personality() 9436 put_cred(creds); in io_unregister_personality() 9567 struct creds *creds; in io_ring_ctx_wait_and_kill() local [all …]
|
A D | aio.c | 177 struct cred *creds; member 1587 const struct cred *old_cred = override_creds(iocb->fsync.creds); in aio_fsync_work() 1591 put_cred(iocb->fsync.creds); in aio_fsync_work() 1605 req->creds = prepare_creds(); in aio_fsync() 1606 if (!req->creds) in aio_fsync()
|
/linux/Documentation/filesystems/nfs/ |
A D | rpc-server-gss.rst | 62 B) It does not properly handle creds where the user is member of more
|
/linux/net/netlink/ |
A D | af_netlink.c | 175 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb() 1902 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg() 1996 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
|
/linux/net/unix/ |
A D | af_unix.c | 1669 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb() 1670 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb() 1717 current_uid_gid(&scm->creds.uid, &scm->creds.gid); in maybe_init_creds() 1728 uid_eq(u->uid, scm->creds.uid) && in unix_skb_scm_eq() 1729 gid_eq(u->gid, scm->creds.gid) && in unix_skb_scm_eq()
|
/linux/security/integrity/ima/ |
A D | ima.h | 194 hook(CREDS_CHECK, creds) \
|