From df850530e38c65352519fe11d726b51a5af23f8a Mon Sep 17 00:00:00 2001 From: Eugene Grosbein <eugen@FreeBSD.org> Date: Sun, 25 Feb 2018 23:10:13 +0000 Subject: [PATCH] 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 --- sys/security/mac_portacl/mac_portacl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/security/mac_portacl/mac_portacl.c b/sys/security/mac_portacl/mac_portacl.c index 17427ee200f3..3dd48c16ebc4 100644 --- a/sys/security/mac_portacl/mac_portacl.c +++ b/sys/security/mac_portacl/mac_portacl.c @@ -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);