1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Bump MAC Framework version to 2 in preparation for the upcoming API/ABI

changes associated with adding System V IPC support.  This will prevent
old modules from being used with the new kernel, and new modules from
being used with the old kernel.
This commit is contained in:
Robert Watson 2004-11-09 11:28:40 +00:00
parent 7e3bed5b6d
commit af8d7cbe4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137454
5 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@ __FBSDID("$FreeBSD$");
* modules to refuse to be loaded if the necessary support isn't present,
* even if it's pre-boot.
*/
MODULE_VERSION(kernel_mac_support, 1);
MODULE_VERSION(kernel_mac_support, 2);
SYSCTL_NODE(_security, OID_AUTO, mac, CTLFLAG_RW, 0,
"TrustedBSD MAC policy controls");

View File

@ -96,7 +96,7 @@ __FBSDID("$FreeBSD$");
* modules to refuse to be loaded if the necessary support isn't present,
* even if it's pre-boot.
*/
MODULE_VERSION(kernel_mac_support, 1);
MODULE_VERSION(kernel_mac_support, 2);
SYSCTL_NODE(_security, OID_AUTO, mac, CTLFLAG_RW, 0,
"TrustedBSD MAC policy controls");

View File

@ -507,7 +507,7 @@ struct mac_policy_conf {
mac_policy_modevent, \
&mpname##_mac_policy_conf \
}; \
MODULE_DEPEND(mpname, kernel_mac_support, 1, 1, 1); \
MODULE_DEPEND(mpname, kernel_mac_support, 2, 2, 2); \
DECLARE_MODULE(mpname, mpname##_mod, SI_SUB_MAC_POLICY, \
SI_ORDER_MIDDLE)

View File

@ -96,7 +96,7 @@ __FBSDID("$FreeBSD$");
* modules to refuse to be loaded if the necessary support isn't present,
* even if it's pre-boot.
*/
MODULE_VERSION(kernel_mac_support, 1);
MODULE_VERSION(kernel_mac_support, 2);
SYSCTL_NODE(_security, OID_AUTO, mac, CTLFLAG_RW, 0,
"TrustedBSD MAC policy controls");

View File

@ -507,7 +507,7 @@ struct mac_policy_conf {
mac_policy_modevent, \
&mpname##_mac_policy_conf \
}; \
MODULE_DEPEND(mpname, kernel_mac_support, 1, 1, 1); \
MODULE_DEPEND(mpname, kernel_mac_support, 2, 2, 2); \
DECLARE_MODULE(mpname, mpname##_mod, SI_SUB_MAC_POLICY, \
SI_ORDER_MIDDLE)