Home
last modified time | relevance | path

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

/f-stack/freebsd/security/mac_seeotheruids/
H A Dmac_seeotheruids.c176 return (seeotheruids_check(cred, so->so_cred)); in seeotheruids_socket_check_visible()
/f-stack/freebsd/netinet6/
H A Draw_ip6.c421 inp->in6p_outputopts, so->so_cred, in rip6_output()
481 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_output()
827 inp, so->so_cred, scope_ambiguous, &in6a, NULL); in rip6_connect()
H A Dsctp6_usrreq.c453 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp6_getcred()
/f-stack/freebsd/security/mac_partition/
H A Dmac_partition.c275 error = partition_check(cred->cr_label, so->so_cred->cr_label); in partition_socket_check_visible()
/f-stack/freebsd/kern/
H A Duipc_socket.c480 crfree(so->so_cred); in sodealloc()
487 (void)chgsbsize(so->so_cred->cr_uidinfo, in sodealloc()
490 (void)chgsbsize(so->so_cred->cr_uidinfo, in sodealloc()
541 so->so_cred = crhold(cred); in socreate()
727 so->so_cred = crhold(head->so_cred);
821 so->so_cred = crhold(head->so_cred);
3919 if (so->so_cred->cr_uid != uid)
4274 xso->so_uid = so->so_cred->cr_uid;
H A Dsys_socket.c341 ub->st_uid = so->so_cred->cr_uid; in soo_stat()
342 ub->st_gid = so->so_cred->cr_gid; in soo_stat()
H A Dkern_prot.c1782 error = prison_check(cred, so->so_cred); in cr_canseesocket()
1790 if (cr_canseeotheruids(cred, so->so_cred)) in cr_canseesocket()
1792 if (cr_canseeothergids(cred, so->so_cred)) in cr_canseesocket()
H A Duipc_sockbuf.c635 if (!chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, cc, in sbreserve_locked()
729 (void)chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, 0, in sbrelease_internal()
H A Duipc_usrreq.c1863 unp->unp_socket->so_cred)) { in unp_pcblist()
/f-stack/tools/compat/include/sys/
H A Dsocketvar.h105 struct ucred *so_cred; /* (a) user credentials */ member
/f-stack/freebsd/sys/
H A Dsocketvar.h105 struct ucred *so_cred; /* (a) user credentials */ member
/f-stack/freebsd/netinet/
H A Dtcp_timewait.c352 tw->tw_cred = crhold(so->so_cred); in tcp_twstart()
H A Din_pcb.c362 if (inp->inp_socket != NULL && jailed(inp->inp_socket->so_cred)) in in_pcbinslbgrouphash()
596 inp->inp_cred = crhold(so->so_cred); in in_pcballoc()
H A Dtcp_syncache.c1483 cred = crhold(so->so_cred); in syncache_add()
H A Dsctp_pcb.c2417 inp->ip_inp.inp.inp_cred = crhold(so->so_cred); in sctp_inpcb_alloc()
H A Dsctp_usrreq.c401 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp_getcred()