* 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
| 444 | * the syncache code might create. |
| 445 | */ |
| 446 | void |
| 447 | mac_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 | |
| 457 | int |
| 458 | mac_syncache_init(struct label **label) |
no test coverage detected