Home
last modified time | relevance | path

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

/linux/include/net/
H A Dscm.h47 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 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 …]
H A 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()
H A Dgss_rpc_upcall.h22 struct svc_cred creds; member
H A Dsvcauth_gss.c1247 /* creds */ in gss_proxy_save_rsc()
1255 /* steal creds */ in gss_proxy_save_rsc()
1256 rsci.cred = ud->creds; in gss_proxy_save_rsc()
1257 memset(&ud->creds, 0, sizeof(struct svc_cred)); in gss_proxy_save_rsc()
/linux/drivers/soc/bcm/brcmstb/
H A 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/arch/powerpc/platforms/pseries/
H A 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()
H A Dvas.c651 static int reconfig_open_windows(struct vas_caps *vcaps, int creds, in reconfig_open_windows() argument
680 if ((vcaps->nr_close_wins > creds) && !migrate) in reconfig_open_windows()
681 mv_ents = vcaps->nr_close_wins - creds; in reconfig_open_windows()
/linux/io_uring/
H A Dregister.c77 const struct cred *creds; in io_unregister_personality() local
79 creds = xa_erase(&ctx->personalities, id); in io_unregister_personality()
80 if (creds) { in io_unregister_personality()
81 put_cred(creds); in io_unregister_personality()
91 const struct cred *creds; in io_register_personality() local
95 creds = get_current_cred(); in io_register_personality()
97 ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, in io_register_personality()
100 put_cred(creds); in io_register_personality()
H A Dsqpoll.c216 const struct cred *creds = NULL; in __io_sq_thread() local
221 creds = override_creds(ctx->sq_creds); in __io_sq_thread()
238 if (creds) in __io_sq_thread()
239 revert_creds(creds); in __io_sq_thread()
H A Dio_uring.c175 req->creds = IO_URING_PTR_POISON; in io_poison_cached_req()
382 put_cred(req->creds); in io_clean_op()
424 req->creds = get_current_cred(); in io_prep_async_work()
1779 const struct cred *creds = NULL; in __io_issue_sqe() local
1784 if ((req->flags & REQ_F_CREDS) && req->creds != current_cred()) in __io_issue_sqe()
1785 creds = override_creds(req->creds); in __io_issue_sqe()
1798 if (unlikely(creds || link)) { in __io_issue_sqe()
1799 if (creds) in __io_issue_sqe()
1800 revert_creds(creds); in __io_issue_sqe()
2223 req->creds = xa_load(&ctx->personalities, personality); in io_init_req()
[all …]
/linux/net/bluetooth/
H A Dhci_sock.c270 struct scm_creds *creds; in hci_sock_copy_creds() local
275 creds = &bt_cb(skb)->creds; in hci_sock_copy_creds()
287 if (creds->pid == pid_vnr(sk->sk_peer_pid)) in hci_sock_copy_creds()
290 memset(creds, 0, sizeof(*creds)); in hci_sock_copy_creds()
292 creds->pid = pid_vnr(sk->sk_peer_pid); in hci_sock_copy_creds()
294 creds->uid = sk->sk_peer_cred->uid; in hci_sock_copy_creds()
295 creds->gid = sk->sk_peer_cred->gid; in hci_sock_copy_creds()
1607 scm.creds in hci_sock_recvmsg()
[all...]
/linux/lib/
H A Dkobject_uevent.c300 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 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/fs/
H A Daio.c177 struct cred *creds; member
1644 scoped_with_creds(iocb->fsync.creds) in aio_fsync_work()
1647 put_cred(iocb->fsync.creds); in aio_fsync_work()
1661 req->creds = prepare_creds(); in aio_fsync()
1662 if (!req->creds) in aio_fsync()
/linux/Documentation/filesystems/nfs/
H A Drpc-server-gss.rst62 B) It does not properly handle creds where the user is member of more
/linux/include/linux/
H A Dio_uring_types.h737 const struct cred *creds; member
/linux/security/integrity/ima/
H A Dima.h319 hook(CREDS_CHECK, creds) \
/linux/net/unix/
H A Daf_unix.c1988 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb()
1989 UNIXCB(skb).gid = scm->creds.gid; in unix_scm_to_skb()
2045 uid_eq(UNIXCB(skb).uid, scm->creds.uid) && in unix_skb_scm_eq()
2046 gid_eq(UNIXCB(skb).gid, scm->creds.gid) && in unix_skb_scm_eq()