MFC r329994: mac_portacl(4): stop panicing INVARIANTS-enabled kernel by loading .ko

when kernel already has options MAC_PORTACL.

PR:		183817
Approved by:	avg (mentor)
This commit is contained in:
Eugene Grosbein 2018-03-05 12:16:37 +00:00
parent 8d9bacc120
commit 1962014de7

View File

@ -487,3 +487,4 @@ static struct mac_policy_ops portacl_ops =
MAC_POLICY_SET(&portacl_ops, mac_portacl, "TrustedBSD MAC/portacl",
MPC_LOADTIME_FLAG_UNLOADOK, NULL);
MODULE_VERSION(mac_portacl, 1);