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

Function mac_socket_check_receive

freebsd/security/mac/mac_socket.c:416–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 "struct socket *");
415
416int
417mac_socket_check_receive(struct ucred *cred, struct socket *so)
418{
419 int error;
420
421 MAC_POLICY_CHECK_NOSLEEP(socket_check_receive, cred, so,
422 so->so_label);
423 MAC_CHECK_PROBE2(socket_check_receive, error, cred, so);
424
425 return (error);
426}
427
428MAC_CHECK_PROBE_DEFINE3(socket_check_relabel, "struct ucred *",
429 "struct socket *", "struct label *");

Callers 4

sys_sctp_generic_recvmsgFunction · 0.85
kern_recvitFunction · 0.85
soo_readFunction · 0.85
soaio_process_jobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected