Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * NetLabel Management Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * This file defines the management functions for the NetLabel system.  The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * NetLabel system manages static and dynamic label mappings for network
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * protocols such as CIPSO and RIPSO.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  * Author: Paul Moore <paul@paul-moore.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  * (c) Copyright Hewlett-Packard Development Company, L.P., 2006
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #ifndef _NETLABEL_MGMT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #define _NETLABEL_MGMT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <net/netlabel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/atomic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  * The following NetLabel payloads are supported by the management interface.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  * o ADD:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)  *   Sent by an application to add a domain mapping to the NetLabel system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  *     NLBL_MGMT_A_DOMAIN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  *     NLBL_MGMT_A_PROTOCOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)  *   If IPv4 is specified the following attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)  *     NLBL_MGMT_A_IPV4ADDR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36)  *     NLBL_MGMT_A_IPV4MASK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)  *   If IPv6 is specified the following attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40)  *     NLBL_MGMT_A_IPV6ADDR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41)  *     NLBL_MGMT_A_IPV6MASK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43)  *   If using NETLBL_NLTYPE_CIPSOV4 the following attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45)  *     NLBL_MGMT_A_CV4DOI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47)  *   If using NETLBL_NLTYPE_UNLABELED no other attributes are required,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48)  *   however the following attribute may optionally be sent:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50)  *     NLBL_MGMT_A_FAMILY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52)  * o REMOVE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53)  *   Sent by an application to remove a domain mapping from the NetLabel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54)  *   system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58)  *     NLBL_MGMT_A_DOMAIN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60)  * o LISTALL:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61)  *   This message can be sent either from an application or by the kernel in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62)  *   response to an application generated LISTALL message.  When sent by an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63)  *   application there is no payload and the NLM_F_DUMP flag should be set.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64)  *   The kernel should respond with a series of the following messages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68)  *     NLBL_MGMT_A_DOMAIN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69)  *     NLBL_MGMT_A_FAMILY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71)  *   If the IP address selectors are not used the following attribute is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72)  *   required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74)  *     NLBL_MGMT_A_PROTOCOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76)  *   If the IP address selectors are used then the following attritbute is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77)  *   required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79)  *     NLBL_MGMT_A_SELECTORLIST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81)  *   If the mapping is using the NETLBL_NLTYPE_CIPSOV4 type then the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82)  *   attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84)  *     NLBL_MGMT_A_CV4DOI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86)  *   If the mapping is using the NETLBL_NLTYPE_UNLABELED type no other
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87)  *   attributes are required.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89)  * o ADDDEF:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90)  *   Sent by an application to set the default domain mapping for the NetLabel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91)  *   system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95)  *     NLBL_MGMT_A_PROTOCOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97)  *   If using NETLBL_NLTYPE_CIPSOV4 the following attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99)  *     NLBL_MGMT_A_CV4DOI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)  *   If using NETLBL_NLTYPE_UNLABELED no other attributes are required,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)  *   however the following attribute may optionally be sent:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)  *     NLBL_MGMT_A_FAMILY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)  * o REMOVEDEF:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)  *   Sent by an application to remove the default domain mapping from the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)  *   NetLabel system, there is no payload.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)  * o LISTDEF:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)  *   This message can be sent either from an application or by the kernel in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)  *   response to an application generated LISTDEF message.  When sent by an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113)  *   application there may be an optional payload.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)  *     NLBL_MGMT_A_FAMILY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)  *   On success the kernel should send a response using the following format:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)  *   If the IP address selectors are not used the following attributes are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)  *   required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)  *     NLBL_MGMT_A_PROTOCOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)  *     NLBL_MGMT_A_FAMILY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125)  *   If the IP address selectors are used then the following attritbute is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126)  *   required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)  *     NLBL_MGMT_A_SELECTORLIST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)  *   If the mapping is using the NETLBL_NLTYPE_CIPSOV4 type then the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131)  *   attributes are required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)  *     NLBL_MGMT_A_CV4DOI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)  *   If the mapping is using the NETLBL_NLTYPE_UNLABELED type no other
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)  *   attributes are required.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)  * o PROTOCOLS:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)  *   Sent by an application to request a list of configured NetLabel protocols
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)  *   in the kernel.  When sent by an application there is no payload and the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141)  *   NLM_F_DUMP flag should be set.  The kernel should respond with a series of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)  *   the following messages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)  *     NLBL_MGMT_A_PROTOCOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148)  * o VERSION:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)  *   Sent by an application to request the NetLabel version.  When sent by an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)  *   application there is no payload.  This message type is also used by the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151)  *   kernel to respond to an VERSION request.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)  *   Required attributes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)  *     NLBL_MGMT_A_VERSION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) /* NetLabel Management commands */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) enum {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	NLBL_MGMT_C_UNSPEC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	NLBL_MGMT_C_ADD,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	NLBL_MGMT_C_REMOVE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	NLBL_MGMT_C_LISTALL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	NLBL_MGMT_C_ADDDEF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	NLBL_MGMT_C_REMOVEDEF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	NLBL_MGMT_C_LISTDEF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	NLBL_MGMT_C_PROTOCOLS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	NLBL_MGMT_C_VERSION,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	__NLBL_MGMT_C_MAX,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) /* NetLabel Management attributes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) enum {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	NLBL_MGMT_A_UNSPEC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	NLBL_MGMT_A_DOMAIN,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	/* (NLA_NUL_STRING)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	 * the NULL terminated LSM domain string */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	NLBL_MGMT_A_PROTOCOL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	/* (NLA_U32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	 * the NetLabel protocol type (defined by NETLBL_NLTYPE_*) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	NLBL_MGMT_A_VERSION,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	/* (NLA_U32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	 * the NetLabel protocol version number (defined by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	 * NETLBL_PROTO_VERSION) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	NLBL_MGMT_A_CV4DOI,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	/* (NLA_U32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	 * the CIPSOv4 DOI value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	NLBL_MGMT_A_IPV6ADDR,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	/* (NLA_BINARY, struct in6_addr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	 * an IPv6 address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	NLBL_MGMT_A_IPV6MASK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	/* (NLA_BINARY, struct in6_addr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	 * an IPv6 address mask */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	NLBL_MGMT_A_IPV4ADDR,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	/* (NLA_BINARY, struct in_addr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	 * an IPv4 address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	NLBL_MGMT_A_IPV4MASK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	/* (NLA_BINARY, struct in_addr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	 * and IPv4 address mask */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	NLBL_MGMT_A_ADDRSELECTOR,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	/* (NLA_NESTED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	 * an IP address selector, must contain an address, mask, and protocol
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	 * attribute plus any protocol specific attributes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	NLBL_MGMT_A_SELECTORLIST,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	/* (NLA_NESTED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	 * the selector list, there must be at least one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	 * NLBL_MGMT_A_ADDRSELECTOR attribute */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	NLBL_MGMT_A_FAMILY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	/* (NLA_U16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	 * The address family */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	NLBL_MGMT_A_CLPDOI,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	/* (NLA_U32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	 * the CALIPSO DOI value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	__NLBL_MGMT_A_MAX,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #define NLBL_MGMT_A_MAX (__NLBL_MGMT_A_MAX - 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) /* NetLabel protocol functions */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) int netlbl_mgmt_genl_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) /* NetLabel configured protocol reference counter */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) extern atomic_t netlabel_mgmt_protocount;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) #endif