netlabel.h (dfaebe9825ff34983778f287101bc5f3bce00640) | netlabel.h (63c41688743760631188cf0f4ae986a6793ccb0a) |
---|---|
1/* 2 * NetLabel System 3 * 4 * The NetLabel system manages static and dynamic label mappings for network 5 * protocols such as CIPSO and RIPSO. 6 * 7 * Author: Paul Moore <paul.moore@hp.com> 8 * 9 */ 10 11/* | 1/* 2 * NetLabel System 3 * 4 * The NetLabel system manages static and dynamic label mappings for network 5 * protocols such as CIPSO and RIPSO. 6 * 7 * Author: Paul Moore <paul.moore@hp.com> 8 * 9 */ 10 11/* |
12 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 12 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
13 * 14 * This program is free software; you can redistribute it and/or modify 15 * it under the terms of the GNU General Public License as published by 16 * the Free Software Foundation; either version 2 of the License, or 17 * (at your option) any later version. 18 * 19 * This program is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 46 unchanged lines hidden (view full) --- 67 68/* 69 * NetLabel NETLINK protocol 70 */ 71 72/* NetLabel NETLINK protocol version 73 * 1: initial version 74 * 2: added static labels for unlabeled connections | 13 * 14 * This program is free software; you can redistribute it and/or modify 15 * it under the terms of the GNU General Public License as published by 16 * the Free Software Foundation; either version 2 of the License, or 17 * (at your option) any later version. 18 * 19 * This program is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 46 unchanged lines hidden (view full) --- 67 68/* 69 * NetLabel NETLINK protocol 70 */ 71 72/* NetLabel NETLINK protocol version 73 * 1: initial version 74 * 2: added static labels for unlabeled connections |
75 * 3: network selectors added to the NetLabel/LSM domain mapping |
|
75 */ | 76 */ |
76#define NETLBL_PROTO_VERSION 2 | 77#define NETLBL_PROTO_VERSION 3 |
77 78/* NetLabel NETLINK types/families */ 79#define NETLBL_NLTYPE_NONE 0 80#define NETLBL_NLTYPE_MGMT 1 81#define NETLBL_NLTYPE_MGMT_NAME "NLBL_MGMT" 82#define NETLBL_NLTYPE_RIPSO 2 83#define NETLBL_NLTYPE_RIPSO_NAME "NLBL_RIPSO" 84#define NETLBL_NLTYPE_CIPSOV4 3 85#define NETLBL_NLTYPE_CIPSOV4_NAME "NLBL_CIPSOv4" 86#define NETLBL_NLTYPE_CIPSOV6 4 87#define NETLBL_NLTYPE_CIPSOV6_NAME "NLBL_CIPSOv6" 88#define NETLBL_NLTYPE_UNLABELED 5 89#define NETLBL_NLTYPE_UNLABELED_NAME "NLBL_UNLBL" | 78 79/* NetLabel NETLINK types/families */ 80#define NETLBL_NLTYPE_NONE 0 81#define NETLBL_NLTYPE_MGMT 1 82#define NETLBL_NLTYPE_MGMT_NAME "NLBL_MGMT" 83#define NETLBL_NLTYPE_RIPSO 2 84#define NETLBL_NLTYPE_RIPSO_NAME "NLBL_RIPSO" 85#define NETLBL_NLTYPE_CIPSOV4 3 86#define NETLBL_NLTYPE_CIPSOV4_NAME "NLBL_CIPSOv4" 87#define NETLBL_NLTYPE_CIPSOV6 4 88#define NETLBL_NLTYPE_CIPSOV6_NAME "NLBL_CIPSOv6" 89#define NETLBL_NLTYPE_UNLABELED 5 90#define NETLBL_NLTYPE_UNLABELED_NAME "NLBL_UNLBL" |
91#define NETLBL_NLTYPE_ADDRSELECT 6 92#define NETLBL_NLTYPE_ADDRSELECT_NAME "NLBL_ADRSEL" |
|
90 91/* 92 * NetLabel - Kernel API for accessing the network packet label mappings. 93 * 94 * The following functions are provided for use by other kernel modules, 95 * specifically kernel LSM modules, to provide a consistent, transparent API 96 * for dealing with explicit packet labeling protocols such as CIPSO and 97 * RIPSO. The functions defined here are implemented in the --- 377 unchanged lines hidden --- | 93 94/* 95 * NetLabel - Kernel API for accessing the network packet label mappings. 96 * 97 * The following functions are provided for use by other kernel modules, 98 * specifically kernel LSM modules, to provide a consistent, transparent API 99 * for dealing with explicit packet labeling protocols such as CIPSO and 100 * RIPSO. The functions defined here are implemented in the --- 377 unchanged lines hidden --- |