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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193355
@ -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 New Issue
Block a user