mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Mark MAC Framework sx and rm locks as NOWITNESS to suppress warnings that
might arise from WITNESS not understanding its locking protocol, which should be deadlock-free. Currently these warnings generally don't occur, but as object locking is pushed into policies for some object types, they would otherwise occur more often. Obtained from: TrustedBSD Project
This commit is contained in:
parent
f0a011a1b1
commit
5f51fb4871
1 changed files with 2 additions and 2 deletions
|
|
@ -290,8 +290,8 @@ mac_init(void)
|
|||
mac_labelzone_init();
|
||||
|
||||
#ifndef MAC_STATIC
|
||||
rm_init(&mac_policy_rm, "mac_policy_rm");
|
||||
sx_init(&mac_policy_sx, "mac_policy_sx");
|
||||
rm_init_flags(&mac_policy_rm, "mac_policy_rm", RM_NOWITNESS);
|
||||
sx_init_flags(&mac_policy_sx, "mac_policy_sx", SX_NOWITNESS);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue