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

Function mac_policy_fastpath_unregister

freebsd/security/mac/mac_framework.c:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491static void
492mac_policy_fastpath_unregister(struct mac_policy_conf *mpc)
493{
494 struct mac_policy_fastpath_elem *mpfe;
495 uintptr_t **ops;
496 int i;
497
498 mac_policy_xlock_assert();
499
500 ops = (uintptr_t **)mpc->mpc_ops;
501 for (i = 0; i < nitems(mac_policy_fastpath_array); i++) {
502 mpfe = &mac_policy_fastpath_array[i];
503 if (ops[mpfe->offset] != NULL)
504 mac_policy_fastpath_disable(mpfe);
505 }
506}
507
508#undef FPO
509

Callers 1

mac_policy_unregisterFunction · 0.85

Calls 2

mac_policy_xlock_assertFunction · 0.85

Tested by

no test coverage detected