Author: eugen
Date: Sun Feb 25 23:10:13 2018
New Revision: 329994
URL: https://svnweb.freebsd.org/changeset/base/329994

Log:
  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

Modified:
  head/sys/security/mac_portacl/mac_portacl.c

Modified: head/sys/security/mac_portacl/mac_portacl.c
==============================================================================
--- head/sys/security/mac_portacl/mac_portacl.c Sun Feb 25 20:21:30 2018        
(r329993)
+++ head/sys/security/mac_portacl/mac_portacl.c Sun Feb 25 23:10:13 2018        
(r329994)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to