MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mac_socketpeer_set_from_mbuf

Function mac_socketpeer_set_from_mbuf

freebsd/security/mac/mac_socket.c:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void
262mac_socketpeer_set_from_mbuf(struct mbuf *m, struct socket *so)
263{
264 struct label *label;
265
266 if (mac_policy_count == 0)
267 return;
268
269 label = mac_mbuf_to_label(m);
270
271 MAC_POLICY_PERFORM_NOSLEEP(socketpeer_set_from_mbuf, m, label, so,
272 so->so_peerlabel);
273}
274
275void
276mac_socketpeer_set_from_socket(struct socket *oldso, struct socket *newso)

Callers 4

tcp_syncache.cFile · 0.85
tcp_do_segmentFunction · 0.85
rack_do_syn_sentFunction · 0.85
bbr_do_syn_sentFunction · 0.85

Calls 1

mac_mbuf_to_labelFunction · 0.85

Tested by

no test coverage detected