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

Function mac_policy_fastpath_register

freebsd/security/mac/mac_framework.c:474–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static void
475mac_policy_fastpath_register(struct mac_policy_conf *mpc)
476{
477 struct mac_policy_fastpath_elem *mpfe;
478 uintptr_t **ops;
479 int i;
480
481 mac_policy_xlock_assert();
482
483 ops = (uintptr_t **)mpc->mpc_ops;
484 for (i = 0; i < nitems(mac_policy_fastpath_array); i++) {
485 mpfe = &mac_policy_fastpath_array[i];
486 if (ops[mpfe->offset] != NULL)
487 mac_policy_fastpath_enable(mpfe);
488 }
489}
490
491static void
492mac_policy_fastpath_unregister(struct mac_policy_conf *mpc)

Callers 1

mac_policy_registerFunction · 0.85

Calls 2

mac_policy_xlock_assertFunction · 0.85

Tested by

no test coverage detected