Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
netlabel.h File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <net/netlink.h>
#include <net/request_sock.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  netlbl_audit
 
struct  netlbl_lsm_cache
 
struct  netlbl_lsm_secattr_catmap
 
struct  netlbl_lsm_secattr
 

Macros

#define NETLBL_PROTO_VERSION   3
 
#define NETLBL_NLTYPE_NONE   0
 
#define NETLBL_NLTYPE_MGMT   1
 
#define NETLBL_NLTYPE_MGMT_NAME   "NLBL_MGMT"
 
#define NETLBL_NLTYPE_RIPSO   2
 
#define NETLBL_NLTYPE_RIPSO_NAME   "NLBL_RIPSO"
 
#define NETLBL_NLTYPE_CIPSOV4   3
 
#define NETLBL_NLTYPE_CIPSOV4_NAME   "NLBL_CIPSOv4"
 
#define NETLBL_NLTYPE_CIPSOV6   4
 
#define NETLBL_NLTYPE_CIPSOV6_NAME   "NLBL_CIPSOv6"
 
#define NETLBL_NLTYPE_UNLABELED   5
 
#define NETLBL_NLTYPE_UNLABELED_NAME   "NLBL_UNLBL"
 
#define NETLBL_NLTYPE_ADDRSELECT   6
 
#define NETLBL_NLTYPE_ADDRSELECT_NAME   "NLBL_ADRSEL"
 
#define NETLBL_CATMAP_MAPTYPE   u64
 
#define NETLBL_CATMAP_MAPCNT   4
 
#define NETLBL_CATMAP_MAPSIZE   (sizeof(NETLBL_CATMAP_MAPTYPE) * 8)
 
#define NETLBL_CATMAP_SIZE
 
#define NETLBL_CATMAP_BIT   (NETLBL_CATMAP_MAPTYPE)0x01
 
#define NETLBL_SECATTR_NONE   0x00000000
 
#define NETLBL_SECATTR_DOMAIN   0x00000001
 
#define NETLBL_SECATTR_DOMAIN_CPY
 
#define NETLBL_SECATTR_CACHE   0x00000002
 
#define NETLBL_SECATTR_MLS_LVL   0x00000004
 
#define NETLBL_SECATTR_MLS_CAT   0x00000008
 
#define NETLBL_SECATTR_SECID   0x00000010
 
#define NETLBL_SECATTR_FREE_DOMAIN   0x01000000
 
#define NETLBL_SECATTR_CACHEABLE
 

Macro Definition Documentation

#define NETLBL_CATMAP_BIT   (NETLBL_CATMAP_MAPTYPE)0x01

Definition at line 165 of file netlabel.h.

#define NETLBL_CATMAP_MAPCNT   4

Definition at line 161 of file netlabel.h.

#define NETLBL_CATMAP_MAPSIZE   (sizeof(NETLBL_CATMAP_MAPTYPE) * 8)

Definition at line 162 of file netlabel.h.

#define NETLBL_CATMAP_MAPTYPE   u64

struct netlbl_lsm_secattr_catmap - NetLabel LSM secattr category bitmap : the value of the lowest order bit in the bitmap : the category bitmap : pointer to the next bitmap "node" or NULL

Description: This structure is used to represent category bitmaps. Due to the large number of categories supported by most labeling protocols it is not practical to transfer a full bitmap internally so NetLabel adopts a sparse bitmap structure modeled after SELinux's ebitmap structure. The catmap bitmap field MUST be a power of two in length and large enough to hold at least 240 bits. Special care (i.e. check the code!) should be used when changing these values as the LSM implementation probably has functions which rely on the sizes of these types to speed processing.

Definition at line 160 of file netlabel.h.

#define NETLBL_CATMAP_SIZE
Value:
NETLBL_CATMAP_MAPCNT)

Definition at line 163 of file netlabel.h.

#define NETLBL_NLTYPE_ADDRSELECT   6

Definition at line 96 of file netlabel.h.

#define NETLBL_NLTYPE_ADDRSELECT_NAME   "NLBL_ADRSEL"

Definition at line 97 of file netlabel.h.

#define NETLBL_NLTYPE_CIPSOV4   3

Definition at line 90 of file netlabel.h.

#define NETLBL_NLTYPE_CIPSOV4_NAME   "NLBL_CIPSOv4"

Definition at line 91 of file netlabel.h.

#define NETLBL_NLTYPE_CIPSOV6   4

Definition at line 92 of file netlabel.h.

#define NETLBL_NLTYPE_CIPSOV6_NAME   "NLBL_CIPSOv6"

Definition at line 93 of file netlabel.h.

#define NETLBL_NLTYPE_MGMT   1

Definition at line 86 of file netlabel.h.

#define NETLBL_NLTYPE_MGMT_NAME   "NLBL_MGMT"

Definition at line 87 of file netlabel.h.

#define NETLBL_NLTYPE_NONE   0

Definition at line 85 of file netlabel.h.

#define NETLBL_NLTYPE_RIPSO   2

Definition at line 88 of file netlabel.h.

#define NETLBL_NLTYPE_RIPSO_NAME   "NLBL_RIPSO"

Definition at line 89 of file netlabel.h.

#define NETLBL_NLTYPE_UNLABELED   5

Definition at line 94 of file netlabel.h.

#define NETLBL_NLTYPE_UNLABELED_NAME   "NLBL_UNLBL"

Definition at line 95 of file netlabel.h.

#define NETLBL_PROTO_VERSION   3

Definition at line 82 of file netlabel.h.

#define NETLBL_SECATTR_CACHE   0x00000002

Definition at line 199 of file netlabel.h.

#define NETLBL_SECATTR_CACHEABLE
Value:
NETLBL_SECATTR_MLS_CAT | \
NETLBL_SECATTR_SECID)

Definition at line 205 of file netlabel.h.

#define NETLBL_SECATTR_DOMAIN   0x00000001

Definition at line 196 of file netlabel.h.

#define NETLBL_SECATTR_DOMAIN_CPY
Value:
NETLBL_SECATTR_FREE_DOMAIN)

Definition at line 197 of file netlabel.h.

#define NETLBL_SECATTR_FREE_DOMAIN   0x01000000

Definition at line 204 of file netlabel.h.

#define NETLBL_SECATTR_MLS_CAT   0x00000008

Definition at line 201 of file netlabel.h.

#define NETLBL_SECATTR_MLS_LVL   0x00000004

Definition at line 200 of file netlabel.h.

#define NETLBL_SECATTR_NONE   0x00000000

Definition at line 195 of file netlabel.h.

#define NETLBL_SECATTR_SECID   0x00000010

Definition at line 202 of file netlabel.h.