mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Fix mac_veriexec version mismatch
mac_veriexec sets its version to 1, but the mac_veriexec_shaX modules which depend on it expect MAC_VERIEXEC_VERSION = 2. Be consistent and use MAC_VERIEXEC_VERSION everywhere. This unbreaks loading of mac_veriexec modules at boot time. Authored by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D31268
This commit is contained in:
parent
2d6d5f88d1
commit
fe8ce390b8
@ -266,4 +266,5 @@ veriexec_drvinit(void *unused __unused)
|
||||
}
|
||||
|
||||
SYSINIT(veriexec, SI_SUB_PSEUDO, SI_ORDER_ANY, veriexec_drvinit, NULL);
|
||||
MODULE_DEPEND(veriexec, mac_veriexec, 1, 1, 1);
|
||||
MODULE_DEPEND(veriexec, mac_veriexec, MAC_VERIEXEC_VERSION,
|
||||
MAC_VERIEXEC_VERSION, MAC_VERIEXEC_VERSION);
|
||||
|
@ -737,7 +737,7 @@ static struct mac_policy_ops mac_veriexec_ops =
|
||||
|
||||
MAC_POLICY_SET(&mac_veriexec_ops, mac_veriexec, MAC_VERIEXEC_FULLNAME,
|
||||
MPC_LOADTIME_FLAG_NOTLATE, &mac_veriexec_slot);
|
||||
MODULE_VERSION(mac_veriexec, 1);
|
||||
MODULE_VERSION(mac_veriexec, MAC_VERIEXEC_VERSION);
|
||||
|
||||
static struct vnode *
|
||||
mac_veriexec_bottom_vnode(struct vnode *vp)
|
||||
|
Loading…
Reference in New Issue
Block a user