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

when kernel already has options MAC_PORTACL.

PR:		183817
Approved by:	avg (mentor)
MFC after:	1 week
This commit is contained in:
Eugene Grosbein 2018-02-25 23:10:13 +00:00
parent 0df651d7ee
commit df850530e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329994

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);