git: 50315501340c - main - Bump MAC_VERSION to 5

From: Allan Jude <allanjude_at_FreeBSD.org>
Date: Fri, 07 Oct 2022 15:25:20 UTC
The branch main has been updated by allanjude:

URL: https://cgit.FreeBSD.org/src/commit/?id=50315501340cc3ca1a565c4f9700bbadcdaa5c01

commit 50315501340cc3ca1a565c4f9700bbadcdaa5c01
Author:     Allan Jude <allanjude@FreeBSD.org>
AuthorDate: 2022-10-07 14:37:35 +0000
Commit:     Allan Jude <allanjude@FreeBSD.org>
CommitDate: 2022-10-07 15:24:32 +0000

    Bump MAC_VERSION to 5
    
    2449b9e5fe565be757a4b29093fd1c9c6ffcf3c9 introduced API changes
    that require ensuring that loadable MAC modules use the matching API.
    
    Sponsored by:   Juniper Networks, Inc.
    Sponsored by:   Klara, Inc.
---
 sys/security/mac/mac_policy.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/security/mac/mac_policy.h b/sys/security/mac/mac_policy.h
index 97b3522abf51..1f9a5485b136 100644
--- a/sys/security/mac/mac_policy.h
+++ b/sys/security/mac/mac_policy.h
@@ -1022,8 +1022,9 @@ struct mac_policy_conf {
  *   2                       6.x
  *   3                       7.x
  *   4                       8.x
+ *   5                       14.x
  */
-#define	MAC_VERSION	4
+#define	MAC_VERSION	5
 
 #define	MAC_POLICY_SET(mpops, mpname, mpfullname, mpflags, privdata_wanted) \
 	static struct mac_policy_conf mpname##_mac_policy_conf = {	\