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

Function mac_ifnet_create

freebsd/security/mac/mac_net.c:302–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void
303mac_ifnet_create(struct ifnet *ifp)
304{
305 int locked;
306
307 if (mac_policy_count == 0)
308 return;
309
310 MAC_IFNET_LOCK(ifp, locked);
311 MAC_POLICY_PERFORM_NOSLEEP(ifnet_create, ifp, ifp->if_label);
312 MAC_IFNET_UNLOCK(ifp, locked);
313}
314
315void
316mac_bpfdesc_create(struct ucred *cred, struct bpf_d *d)

Callers 1

if_attach_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected