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

Function mac_policy_fastpath_enable

freebsd/security/mac/mac_framework.c:450–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448};
449
450static void
451mac_policy_fastpath_enable(struct mac_policy_fastpath_elem *mpfe)
452{
453
454 MPASS(mpfe->count >= 0);
455 mpfe->count++;
456 if (mpfe->count == 1) {
457 MPASS(*mpfe->flag == false);
458 *mpfe->flag = true;
459 }
460}
461
462static void
463mac_policy_fastpath_disable(struct mac_policy_fastpath_elem *mpfe)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected