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

Function mac_syncache_destroy

freebsd/security/mac/mac_inet.c:446–455  ·  view source on GitHub ↗

* These functions really should be referencing the syncache structure * instead of the label. However, due to some of the complexities associated * with exposing this syncache structure we operate directly on its label * pointer. This should be OK since we aren't making any access control * decisions within this code directly, we are merely allocating and copying * label storage so we can p

Source from the content-addressed store, hash-verified

444 * the syncache code might create.
445 */
446void
447mac_syncache_destroy(struct label **label)
448{
449
450 if (*label != NULL) {
451 MAC_POLICY_PERFORM_NOSLEEP(syncache_destroy_label, *label);
452 mac_labelzone_free(*label);
453 *label = NULL;
454 }
455}
456
457int
458mac_syncache_init(struct label **label)

Callers 2

syncache_freeFunction · 0.85
syncache_addFunction · 0.85

Calls 1

mac_labelzone_freeFunction · 0.85

Tested by

no test coverage detected