| /linux/net/core/ |
| H A D | scm.c | 49 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds() argument 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() local 205 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send() 206 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() [all …]
|
| /linux/include/net/ |
| H A D | scm.h | 47 struct scm_creds creds; /* Skb credentials */ member 73 scm->creds.pid = pid_vnr(pid); in scm_set_cred() 74 scm->creds.uid = uid; in scm_set_cred() 75 scm->creds.gid = gid; in scm_set_cred() 95 scm->creds.uid = INVALID_UID; in scm_send() 96 scm->creds.gid = INVALID_GID; in scm_send()
|
| /linux/net/sunrpc/auth_gss/ |
| H 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() 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 put_group_info(creds->cr_group_info); in gssx_dec_linux_creds() 226 creds->cr_group_info = NULL; in gssx_dec_linux_creds() 233 struct svc_cred *creds; in gssx_dec_option_array() local [all …]
|
| H A 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()
|
| H A D | gss_rpc_upcall.h | 22 struct svc_cred creds; member
|
| H A D | svcauth_gss.c | 1258 rsci.cred = ud->creds; in gss_proxy_save_rsc() 1259 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
|
| /linux/drivers/soc/bcm/brcmstb/ |
| H 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/io_uring/ |
| H A D | register.c | 78 const struct cred *creds; in io_unregister_personality() local 80 creds = xa_erase(&ctx->personalities, id); in io_unregister_personality() 81 if (creds) { in io_unregister_personality() 82 put_cred(creds); in io_unregister_personality() 92 const struct cred *creds; in io_register_personality() local 96 creds = get_current_cred(); in io_register_personality() 98 ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, in io_register_personality() 101 put_cred(creds); in io_register_personality()
|
| H A D | sqpoll.c | 217 const struct cred *creds = NULL; in __io_sq_thread() local 222 creds = override_creds(ctx->sq_creds); in __io_sq_thread() 239 if (creds) in __io_sq_thread() 240 revert_creds(creds); in __io_sq_thread()
|
| H A D | io_uring.c | 159 req->creds = IO_URING_PTR_POISON; in io_poison_cached_req() 326 put_cred(req->creds); in io_clean_op() 367 req->creds = get_current_cred(); in io_prep_async_work() 1372 const struct cred *creds = NULL; in __io_issue_sqe() local 1377 if ((req->flags & REQ_F_CREDS) && req->creds != current_cred()) in __io_issue_sqe() 1378 creds = override_creds(req->creds); in __io_issue_sqe() 1391 if (unlikely(creds || link)) { in __io_issue_sqe() 1392 if (creds) in __io_issue_sqe() 1393 revert_creds(creds); in __io_issue_sqe() 2416 struct cred *creds; io_ring_ctx_wait_and_kill() local [all...] |
| /linux/lib/ |
| H A D | kobject_uevent.c | 300 parms->creds.uid = GLOBAL_ROOT_UID; in alloc_uevent_skb() 301 parms->creds.gid = GLOBAL_ROOT_GID; in alloc_uevent_skb() 365 parms->creds.uid = root_uid; in uevent_net_broadcast_tagged() 370 parms->creds.gid = root_gid; in uevent_net_broadcast_tagged()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H 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/Documentation/filesystems/nfs/ |
| H A D | rpc-server-gss.rst | 62 B) It does not properly handle creds where the user is member of more
|
| /linux/net/netlink/ |
| H A D | af_netlink.c | 180 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb() 1881 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg() 1974 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
|
| /linux/security/integrity/ima/ |
| H A D | ima.h | 363 hook(CREDS_CHECK, creds) \
|
| /linux/net/unix/ |
| H A D | af_unix.c | 1995 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb() 1996 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb() 2052 uid_eq(UNIXCB(skb).uid, scm->creds.uid) && in unix_skb_scm_eq() 2053 gid_eq(UNIXCB(skb).gid, scm->creds.gid) && in unix_skb_scm_eq()
|