Home
last modified time | relevance | path

Searched refs:creds (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/include/net/
Dscm.h34 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-6.1.9/net/core/
Dscm.c45 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds() argument
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
169 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
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()
[all …]
/linux-6.1.9/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c169 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 …]
Dgss_rpc_upcall.c339 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()
Dgss_rpc_upcall.h22 struct svc_cred creds; member
Dsvcauth_gss.c1317 rsci.cred = ud->creds; in gss_proxy_save_rsc()
1318 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
/linux-6.1.9/drivers/soc/bcm/brcmstb/
Dbiuctrl.c116 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-6.1.9/arch/powerpc/platforms/pseries/
Dvas-sysfs.c36 u16 creds; in update_total_credits_store() local
38 err = kstrtou16(buf, 0, &creds); in update_total_credits_store()
48 err = vas_reconfig_capabilties(caps->win_type, creds); in update_total_credits_store()
53 pr_info("Set QoS total credits %u\n", creds); in update_total_credits_store()
Dvas.c609 static int reconfig_open_windows(struct vas_caps *vcaps, int creds, in reconfig_open_windows() argument
638 if ((vcaps->nr_close_wins > creds) && !migrate) in reconfig_open_windows()
639 mv_ents = vcaps->nr_close_wins - creds; in reconfig_open_windows()
/linux-6.1.9/io_uring/
Dsqpoll.c178 const struct cred *creds = NULL; in __io_sq_thread() local
181 creds = override_creds(ctx->sq_creds); in __io_sq_thread()
198 if (creds) in __io_sq_thread()
199 revert_creds(creds); in __io_sq_thread()
Dio_uring.c412 req->creds = get_current_cred(); in io_prep_async_work()
1684 put_cred(req->creds); in io_clean_op()
1708 const struct cred *creds = NULL; in io_issue_sqe() local
1714 if (unlikely((req->flags & REQ_F_CREDS) && req->creds != current_cred())) in io_issue_sqe()
1715 creds = override_creds(req->creds); in io_issue_sqe()
1725 if (creds) in io_issue_sqe()
1726 revert_creds(creds); in io_issue_sqe()
2052 req->creds = xa_load(&ctx->personalities, personality); in io_init_req()
2053 if (!req->creds) in io_init_req()
2055 get_cred(req->creds); in io_init_req()
[all …]
/linux-6.1.9/lib/
Dkobject_uevent.c301 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-6.1.9/include/linux/
Dnetlink.h26 struct scm_creds creds; /* Skb credentials */ member
36 #define NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds)
Dio_uring_types.h571 const struct cred *creds; member
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dvas-window.c1158 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-6.1.9/fs/
Daio.c177 struct cred *creds; member
1609 const struct cred *old_cred = override_creds(iocb->fsync.creds); in aio_fsync_work()
1613 put_cred(iocb->fsync.creds); in aio_fsync_work()
1627 req->creds = prepare_creds(); in aio_fsync()
1628 if (!req->creds) in aio_fsync()
/linux-6.1.9/Documentation/filesystems/nfs/
Drpc-server-gss.rst62 B) It does not properly handle creds where the user is member of more
/linux-6.1.9/security/integrity/ima/
Dima.h194 hook(CREDS_CHECK, creds) \
/linux-6.1.9/net/netlink/
Daf_netlink.c179 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb()
1912 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg()
2004 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
/linux-6.1.9/net/unix/
Daf_unix.c1806 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb()
1807 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb()
1854 current_uid_gid(&scm->creds.uid, &scm->creds.gid); in maybe_init_creds()
1863 uid_eq(UNIXCB(skb).uid, scm->creds.uid) && in unix_skb_scm_eq()
1864 gid_eq(UNIXCB(skb).gid, scm->creds.gid) && in unix_skb_scm_eq()