MCPcopy Index your code
hub / github.com/F-Stack/f-stack / mac_socket_check_create

Function mac_socket_check_create

freebsd/security/mac/mac_socket.c:350–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 "int");
349
350int
351mac_socket_check_create(struct ucred *cred, int domain, int type, int proto)
352{
353 int error;
354
355 MAC_POLICY_CHECK_NOSLEEP(socket_check_create, cred, domain, type,
356 proto);
357 MAC_CHECK_PROBE4(socket_check_create, error, cred, domain, type,
358 proto);
359
360 return (error);
361}
362
363MAC_CHECK_PROBE_DEFINE2(socket_check_deliver, "struct socket *",
364 "struct mbuf *");

Callers 2

kern_socketFunction · 0.85
kern_socketpairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected