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

Function mac_socketpeer_set_from_socket

freebsd/security/mac/mac_socket.c:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void
276mac_socketpeer_set_from_socket(struct socket *oldso, struct socket *newso)
277{
278
279 if (mac_policy_count == 0)
280 return;
281
282 MAC_POLICY_PERFORM_NOSLEEP(socketpeer_set_from_socket, oldso,
283 oldso->so_label, newso, newso->so_peerlabel);
284}
285
286void
287mac_socket_create_mbuf(struct socket *so, struct mbuf *m)

Callers 1

unp_connectatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected