* Initialize the MAC subsystem, including appropriate SMP locks. */
| 314 | * Initialize the MAC subsystem, including appropriate SMP locks. |
| 315 | */ |
| 316 | static void |
| 317 | mac_init(void) |
| 318 | { |
| 319 | |
| 320 | LIST_INIT(&mac_static_policy_list); |
| 321 | LIST_INIT(&mac_policy_list); |
| 322 | mac_labelzone_init(); |
| 323 | |
| 324 | #ifndef MAC_STATIC |
| 325 | rm_init_flags(&mac_policy_rm, "mac_policy_rm", RM_NOWITNESS | |
| 326 | RM_RECURSE); |
| 327 | rms_init(&mac_policy_rms, "mac_policy_rms"); |
| 328 | #endif |
| 329 | } |
| 330 | |
| 331 | /* |
| 332 | * For the purposes of modules that want to know if they were loaded "early", |
nothing calls this directly
no test coverage detected