Searched refs:creds (Results 1 - 23 of 23) sorted by relevance

/linux-master/net/sunrpc/auth_gss/
H A Dgss_rpc_upcall.h22 struct svc_cred creds; member in struct:gssp_upcall_data
H A Dgss_rpc_xdr.c163 /* Contents of linux creds are all host-endian: */
169 struct svc_cred *creds)
190 creds->cr_uid = make_kuid(&init_user_ns, tmp);
196 creds->cr_gid = make_kgid(&init_user_ns, tmp);
205 creds->cr_group_info = groups_alloc(N);
206 if (creds->cr_group_info == NULL)
219 creds->cr_group_info->gid[i] = kgid;
221 groups_sort(creds->cr_group_info);
225 groups_free(creds->cr_group_info);
232 struct svc_cred *creds; local
168 gssx_dec_linux_creds(struct xdr_stream *xdr, struct svc_cred *creds) argument
[all...]
H A Dgss_rpc_upcall.c339 data->creds = *(struct svc_cred *)value->data;
350 /* convert to GSS_NT_HOSTBASED_SERVICE form and set into creds */
353 data->creds.cr_raw_principal =
355 data->creds.cr_principal =
357 gssp_hostbased_service(&data->creds.cr_principal);
360 data->creds.cr_targ_princ =
362 gssp_hostbased_service(&data->creds.cr_targ_princ);
376 free_svc_cred(&data->creds);
H A Dsvcauth_gss.c1252 /* creds */
1260 /* steal creds */
1261 rsci.cred = ud->creds;
1262 memset(&ud->creds, 0, sizeof(struct svc_cred));
/linux-master/include/net/
H A Dscm.h37 struct scm_creds creds; /* Skb credentials */ member in struct:scm_cookie
63 scm->creds.pid = pid_vnr(pid);
64 scm->creds.uid = uid;
65 scm->creds.gid = gid;
85 scm->creds.uid = INVALID_UID;
86 scm->creds.gid = INVALID_GID;
177 .pid = scm->creds.pid,
178 .uid = from_kuid_munged(current_ns, scm->creds.uid),
179 .gid = from_kgid_munged(current_ns, scm->creds.gid),
/linux-master/net/core/
H A Dscm.c47 static __inline__ int scm_check_creds(struct ucred *creds) argument
50 kuid_t uid = make_kuid(cred->user_ns, creds->uid);
51 kgid_t gid = make_kgid(cred->user_ns, creds->gid);
56 if ((creds->pid == task_tgid_vnr(current) ||
176 struct ucred creds; local
181 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred));
182 err = scm_check_creds(&creds);
186 p->creds.pid = creds.pid;
187 if (!p->pid || pid_vnr(p->pid) != creds
[all...]
/linux-master/drivers/soc/bcm/brcmstb/
H A Dbiuctrl.c116 u32 creds = 0; local
121 creds = cbc_readl(CPU_CREDIT_REG);
124 cbc_writel(creds | CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK,
126 } else if (creds & CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK) {
128 cbc_writel(creds & ~CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK,
/linux-master/arch/powerpc/platforms/pseries/
H A Dvas-sysfs.c36 u16 creds; local
38 err = kstrtou16(buf, 0, &creds);
48 err = vas_reconfig_capabilties(caps->win_type, creds);
53 pr_info("Set QoS total credits %u\n", creds);
H A Dvas.c608 pr_err("Window creds(%u) > max allowed window creds(%u)\n",
631 static int reconfig_open_windows(struct vas_caps *vcaps, int creds, argument
660 if ((vcaps->nr_close_wins > creds) && !migrate)
661 mv_ents = vcaps->nr_close_wins - creds;
992 pr_err("state(%d): lpar creds: %d HV lpar creds: %d\n",
994 pr_err("Used creds: %d, Active creds: %d\n",
/linux-master/io_uring/
H A Dregister.c131 const struct cred *creds; local
133 creds = xa_erase(&ctx->personalities, id);
134 if (creds) {
135 put_cred(creds);
145 const struct cred *creds; local
149 creds = get_current_cred();
151 ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds,
154 put_cred(creds);
H A Dsqpoll.c180 const struct cred *creds = NULL; local
183 creds = override_creds(ctx->sq_creds);
203 if (creds)
204 revert_creds(creds);
H A Dio_uring.c403 put_cred(req->creds);
458 req->creds = get_current_cred();
1885 const struct cred *creds = NULL; local
1891 if (unlikely((req->flags & REQ_F_CREDS) && req->creds != current_cred()))
1892 creds = override_creds(req->creds);
1902 if (creds)
1903 revert_creds(creds);
2276 req->creds = xa_load(&ctx->personalities, personality);
2277 if (!req->creds)
3142 struct creds *creds; local
[all...]
/linux-master/lib/
H A Dkobject_uevent.c300 parms->creds.uid = GLOBAL_ROOT_UID;
301 parms->creds.gid = GLOBAL_ROOT_GID;
365 parms->creds.uid = root_uid;
370 parms->creds.gid = root_gid;
/linux-master/net/bluetooth/
H A Dhci_sock.c269 struct scm_creds *creds; local
274 creds = &bt_cb(skb)->creds;
286 if (creds->pid == pid_vnr(sk->sk_peer_pid))
289 memset(creds, 0, sizeof(*creds));
291 creds->pid = pid_vnr(sk->sk_peer_pid);
293 creds->uid = sk->sk_peer_cred->uid;
294 creds->gid = sk->sk_peer_cred->gid;
1601 scm.creds
[all...]
/linux-master/include/linux/
H A Dnetlink.h26 struct scm_creds creds; /* Skb credentials */ member in struct:netlink_skb_parms
36 #define NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds)
H A Dio_uring_types.h531 /* has creds assigned */
667 const struct cred *creds; member in struct:io_kiocb
H A Dfs.h2654 const struct cred *creds);
/linux-master/arch/powerpc/platforms/powernv/
H A Dvas-window.c1158 int creds, mode; local
1172 creds = GET_FIELD(VAS_TX_WCRED, val);
1175 creds = GET_FIELD(VAS_LRX_WCRED, val);
1185 if (creds < window->vas_win.wcreds_max) {
1195 pr_warn_ratelimited("VAS: pid %d stuck. Waiting for credits returned for Window(%d). creds %d, Retries %d\n",
1198 creds, count);
/linux-master/security/integrity/ima/
H A Dima.h302 hook(CREDS_CHECK, creds) \
/linux-master/include/net/bluetooth/
H A Dbluetooth.h473 struct scm_creds creds; member in union:bt_skb_cb::__anon165
/linux-master/net/netlink/
H A Daf_netlink.c179 NETLINK_CB(new).creds = NETLINK_CB(skb).creds;
1886 NETLINK_CB(skb).creds = scm.creds;
1979 scm.creds = *NETLINK_CREDS(skb);
/linux-master/fs/
H A Daio.c177 struct cred *creds; member in struct:fsync_iocb
1648 const struct cred *old_cred = override_creds(iocb->fsync.creds);
1652 put_cred(iocb->fsync.creds);
1666 req->creds = prepare_creds();
1667 if (!req->creds)
/linux-master/net/unix/
H A Daf_unix.c1889 UNIXCB(skb).uid = scm->creds.uid;
1890 UNIXCB(skb).gid = scm->creds.gid;
1930 uid_eq(UNIXCB(skb).uid, scm->creds.uid) &&
1931 gid_eq(UNIXCB(skb).gid, scm->creds.gid) &&

Completed in 614 milliseconds