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

Function mac_socket_check_visible

freebsd/security/mac/mac_socket.c:477–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475 "struct socket *");
476
477int
478mac_socket_check_visible(struct ucred *cred, struct socket *so)
479{
480 int error;
481
482 MAC_POLICY_CHECK_NOSLEEP(socket_check_visible, cred, so,
483 so->so_label);
484 MAC_CHECK_PROBE2(socket_check_visible, error, cred, so);
485
486 return (error);
487}
488
489int
490mac_socket_label_set(struct ucred *cred, struct socket *so,

Callers 1

cr_canseesocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected