Searched refs:so_cred (Results 1 – 18 of 18) sorted by relevance
/freebsd/sys/netlink/ |
H A D | netlink_glue.c | 88 return (priv_check_cred(nlp->nl_socket->so_cred, priv) == 0); in nlp_has_priv() 94 return (nlp->nl_socket->so_cred); in nlp_get_cred()
|
H A D | netlink_domain.c | 222 nlp->nl_socket->so_cred, nw->group.priv) == 0) && in nl_send_group() 346 nlp->nl_unconstrained_vnet = !jailed_without_vnet(so->so_cred); in nl_attach()
|
/freebsd/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 172 return (seeotheruids_check(cred, so->so_cred)); in seeotheruids_socket_check_visible()
|
/freebsd/sys/netinet6/ |
H A D | raw_ip6.c | 408 so->so_cred, inp->inp_ip_p); in rip6_send() 470 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_send() 817 inp, so->so_cred, scope_ambiguous, &in6a, NULL); in rip6_connect()
|
H A D | sctp6_usrreq.c | 424 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp6_getcred()
|
/freebsd/sys/kern/ |
H A D | uipc_socket.c | 886 (void)chgsbsize(so->so_cred->cr_uidinfo, in sodealloc() 889 (void)chgsbsize(so->so_cred->cr_uidinfo, in sodealloc() 896 crfree(so->so_cred); in sodealloc() 952 so->so_cred = crhold(cred); in socreate() 1125 if (head->so_cred == 0) { 1140 overcount, head->so_cred->cr_uid, 1141 head->so_cred->cr_rgid, 1142 head->so_cred->cr_prison ? 1143 head->so_cred->cr_prison->pr_name : 1186 so->so_cred = crhold(head->so_cred); [all …]
|
H A D | sys_socket.c | 328 ub->st_uid = so->so_cred->cr_uid; in soo_stat() 329 ub->st_gid = so->so_cred->cr_gid; in soo_stat()
|
H A D | uipc_sockbuf.c | 671 if (!chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, cc, in sbreserve_locked_limit() 788 (void)chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, 0, in sbrelease_internal()
|
H A D | kern_prot.c | 2260 error = prison_check(cred, so->so_cred); in cr_canseesocket() 2268 if (cr_bsd_visible(cred, so->so_cred)) in cr_canseesocket()
|
H A D | uipc_usrreq.c | 2296 unp->unp_socket->so_cred)) { in unp_pcblist() 3270 (void)chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, 0, in unp_dispose()
|
/freebsd/sys/security/mac_partition/ |
H A D | mac_partition.c | 271 error = partition_check(cred->cr_label, so->so_cred->cr_label); in partition_socket_check_visible()
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_cma.c | 172 ssk->cred = crhold(child->so_cred); in sdp_connect_handler()
|
H A D | sdp_main.c | 430 ssk->cred = crhold(so->so_cred); in sdp_attach()
|
/freebsd/sys/sys/ |
H A D | socketvar.h | 126 struct ucred *so_cred; /* (a) user credentials */ member
|
/freebsd/sys/netinet/ |
H A D | tcp_syncache.c | 1630 sc->sc_cred = crhold(so->so_cred); in syncache_add()
|
H A D | in_pcb.c | 648 inp->inp_cred = crhold(so->so_cred); in in_pcballoc()
|
H A D | sctp_pcb.c | 2282 inp->ip_inp.inp.inp_cred = crhold(so->so_cred); in sctp_inpcb_alloc()
|
H A D | sctp_usrreq.c | 403 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp_getcred()
|