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:
parent
7e3bed5b6d
commit
af8d7cbe4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137454
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user