Home
last modified time | relevance | path

Searched refs:so_cred (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/netlink/
H A Dnetlink_glue.c88 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 Dnetlink_domain.c222 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 Dmac_seeotheruids.c172 return (seeotheruids_check(cred, so->so_cred)); in seeotheruids_socket_check_visible()
/freebsd/sys/netinet6/
H A Draw_ip6.c408 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 Dsctp6_usrreq.c424 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp6_getcred()
/freebsd/sys/kern/
H A Duipc_socket.c886 (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 Dsys_socket.c328 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 Duipc_sockbuf.c671 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 Dkern_prot.c2260 error = prison_check(cred, so->so_cred); in cr_canseesocket()
2268 if (cr_bsd_visible(cred, so->so_cred)) in cr_canseesocket()
H A Duipc_usrreq.c2296 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 Dmac_partition.c271 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 Dsdp_cma.c172 ssk->cred = crhold(child->so_cred); in sdp_connect_handler()
H A Dsdp_main.c430 ssk->cred = crhold(so->so_cred); in sdp_attach()
/freebsd/sys/sys/
H A Dsocketvar.h126 struct ucred *so_cred; /* (a) user credentials */ member
/freebsd/sys/netinet/
H A Dtcp_syncache.c1630 sc->sc_cred = crhold(so->so_cred); in syncache_add()
H A Din_pcb.c648 inp->inp_cred = crhold(so->so_cred); in in_pcballoc()
H A Dsctp_pcb.c2282 inp->ip_inp.inp.inp_cred = crhold(so->so_cred); in sctp_inpcb_alloc()
H A Dsctp_usrreq.c403 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp_getcred()