diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/atmlec.h | 119 | ||||
| -rw-r--r-- | include/linux/audit.h | 11 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 1 | ||||
| -rw-r--r-- | include/net/cipso_ipv4.h | 4 | ||||
| -rw-r--r-- | include/net/netlabel.h | 8 |
5 files changed, 79 insertions, 64 deletions
diff --git a/include/linux/atmlec.h b/include/linux/atmlec.h index f267f2442766..6f5a1bab8f50 100644 --- a/include/linux/atmlec.h +++ b/include/linux/atmlec.h | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * | 2 | * ATM Lan Emulation Daemon driver interface |
| 3 | * ATM Lan Emulation Daemon vs. driver interface | ||
| 4 | * | ||
| 5 | * mkiiskila@yahoo.com | ||
| 6 | * | 3 | * |
| 4 | * Marko Kiiskila <mkiiskila@yahoo.com> | ||
| 7 | */ | 5 | */ |
| 8 | 6 | ||
| 9 | #ifndef _ATMLEC_H_ | 7 | #ifndef _ATMLEC_H_ |
| @@ -13,76 +11,87 @@ | |||
| 13 | #include <linux/atmioc.h> | 11 | #include <linux/atmioc.h> |
| 14 | #include <linux/atm.h> | 12 | #include <linux/atm.h> |
| 15 | #include <linux/if_ether.h> | 13 | #include <linux/if_ether.h> |
| 14 | |||
| 16 | /* ATM lec daemon control socket */ | 15 | /* ATM lec daemon control socket */ |
| 17 | #define ATMLEC_CTRL _IO('a',ATMIOC_LANE) | 16 | #define ATMLEC_CTRL _IO('a', ATMIOC_LANE) |
| 18 | #define ATMLEC_DATA _IO('a',ATMIOC_LANE+1) | 17 | #define ATMLEC_DATA _IO('a', ATMIOC_LANE+1) |
| 19 | #define ATMLEC_MCAST _IO('a',ATMIOC_LANE+2) | 18 | #define ATMLEC_MCAST _IO('a', ATMIOC_LANE+2) |
| 20 | 19 | ||
| 21 | /* Maximum number of LEC interfaces (tweakable) */ | 20 | /* Maximum number of LEC interfaces (tweakable) */ |
| 22 | #define MAX_LEC_ITF 48 | 21 | #define MAX_LEC_ITF 48 |
| 23 | 22 | ||
| 24 | /* From the total of MAX_LEC_ITF, last NUM_TR_DEVS are reserved for Token Ring. | 23 | /* |
| 24 | * From the total of MAX_LEC_ITF, last NUM_TR_DEVS are reserved for Token Ring. | ||
| 25 | * E.g. if MAX_LEC_ITF = 48 and NUM_TR_DEVS = 8, then lec0-lec39 are for | 25 | * E.g. if MAX_LEC_ITF = 48 and NUM_TR_DEVS = 8, then lec0-lec39 are for |
| 26 | * Ethernet ELANs and lec40-lec47 are for Token Ring ELANS. | 26 | * Ethernet ELANs and lec40-lec47 are for Token Ring ELANS. |
| 27 | */ | 27 | */ |
| 28 | #define NUM_TR_DEVS 8 | 28 | #define NUM_TR_DEVS 8 |
| 29 | 29 | ||
| 30 | typedef enum { | 30 | typedef enum { |
| 31 | l_set_mac_addr, l_del_mac_addr, | 31 | l_set_mac_addr, |
| 32 | l_svc_setup, | 32 | l_del_mac_addr, |
| 33 | l_addr_delete, l_topology_change, | 33 | l_svc_setup, |
| 34 | l_flush_complete, l_arp_update, | 34 | l_addr_delete, |
| 35 | l_narp_req, /* LANE2 mandates the use of this */ | 35 | l_topology_change, |
| 36 | l_config, l_flush_tran_id, | 36 | l_flush_complete, |
| 37 | l_set_lecid, l_arp_xmt, | 37 | l_arp_update, |
| 38 | l_rdesc_arp_xmt, | 38 | l_narp_req, /* LANE2 mandates the use of this */ |
| 39 | l_associate_req, | 39 | l_config, |
| 40 | l_should_bridge /* should we bridge this MAC? */ | 40 | l_flush_tran_id, |
| 41 | l_set_lecid, | ||
| 42 | l_arp_xmt, | ||
| 43 | l_rdesc_arp_xmt, | ||
| 44 | l_associate_req, | ||
| 45 | l_should_bridge /* should we bridge this MAC? */ | ||
| 41 | } atmlec_msg_type; | 46 | } atmlec_msg_type; |
| 42 | 47 | ||
| 43 | #define ATMLEC_MSG_TYPE_MAX l_should_bridge | 48 | #define ATMLEC_MSG_TYPE_MAX l_should_bridge |
| 44 | 49 | ||
| 45 | struct atmlec_config_msg { | 50 | struct atmlec_config_msg { |
| 46 | unsigned int maximum_unknown_frame_count; | 51 | unsigned int maximum_unknown_frame_count; |
| 47 | unsigned int max_unknown_frame_time; | 52 | unsigned int max_unknown_frame_time; |
| 48 | unsigned short max_retry_count; | 53 | unsigned short max_retry_count; |
| 49 | unsigned int aging_time; | 54 | unsigned int aging_time; |
| 50 | unsigned int forward_delay_time; | 55 | unsigned int forward_delay_time; |
| 51 | unsigned int arp_response_time; | 56 | unsigned int arp_response_time; |
| 52 | unsigned int flush_timeout; | 57 | unsigned int flush_timeout; |
| 53 | unsigned int path_switching_delay; | 58 | unsigned int path_switching_delay; |
| 54 | unsigned int lane_version; /* LANE2: 1 for LANEv1, 2 for LANEv2 */ | 59 | unsigned int lane_version; /* LANE2: 1 for LANEv1, 2 for LANEv2 */ |
| 55 | int mtu; | 60 | int mtu; |
| 56 | int is_proxy; | 61 | int is_proxy; |
| 57 | }; | 62 | }; |
| 58 | 63 | ||
| 59 | struct atmlec_msg { | 64 | struct atmlec_msg { |
| 60 | atmlec_msg_type type; | 65 | atmlec_msg_type type; |
| 61 | int sizeoftlvs; /* LANE2: if != 0, tlvs follow */ | 66 | int sizeoftlvs; /* LANE2: if != 0, tlvs follow */ |
| 62 | union { | 67 | union { |
| 63 | struct { | 68 | struct { |
| 64 | unsigned char mac_addr[ETH_ALEN]; | 69 | unsigned char mac_addr[ETH_ALEN]; |
| 65 | unsigned char atm_addr[ATM_ESA_LEN]; | 70 | unsigned char atm_addr[ATM_ESA_LEN]; |
| 66 | unsigned int flag;/* Topology_change flag, | 71 | unsigned int flag; /* |
| 67 | remoteflag, permanent flag, | 72 | * Topology_change flag, |
| 68 | lecid, transaction id */ | 73 | * remoteflag, permanent flag, |
| 69 | unsigned int targetless_le_arp; /* LANE2 */ | 74 | * lecid, transaction id |
| 70 | unsigned int no_source_le_narp; /* LANE2 */ | 75 | */ |
| 71 | } normal; | 76 | unsigned int targetless_le_arp; /* LANE2 */ |
| 72 | struct atmlec_config_msg config; | 77 | unsigned int no_source_le_narp; /* LANE2 */ |
| 73 | struct { | 78 | } normal; |
| 74 | uint16_t lec_id; /* requestor lec_id */ | 79 | struct atmlec_config_msg config; |
| 75 | uint32_t tran_id; /* transaction id */ | 80 | struct { |
| 76 | unsigned char mac_addr[ETH_ALEN]; /* dst mac addr */ | 81 | uint16_t lec_id; /* requestor lec_id */ |
| 77 | unsigned char atm_addr[ATM_ESA_LEN]; /* reqestor ATM addr */ | 82 | uint32_t tran_id; /* transaction id */ |
| 78 | } proxy; | 83 | unsigned char mac_addr[ETH_ALEN]; /* dst mac addr */ |
| 79 | /* For mapping LE_ARP requests to responses. Filled by */ | 84 | unsigned char atm_addr[ATM_ESA_LEN]; /* reqestor ATM addr */ |
| 80 | } content; /* zeppelin, returned by kernel. Used only when proxying */ | 85 | } proxy; /* |
| 86 | * For mapping LE_ARP requests to responses. Filled by | ||
| 87 | * zeppelin, returned by kernel. Used only when proxying | ||
| 88 | */ | ||
| 89 | } content; | ||
| 81 | } __ATM_API_ALIGN; | 90 | } __ATM_API_ALIGN; |
| 82 | 91 | ||
| 83 | struct atmlec_ioc { | 92 | struct atmlec_ioc { |
| 84 | int dev_num; | 93 | int dev_num; |
| 85 | unsigned char atm_addr[ATM_ESA_LEN]; | 94 | unsigned char atm_addr[ATM_ESA_LEN]; |
| 86 | unsigned char receive; /* 1= receive vcc, 0 = send vcc */ | 95 | unsigned char receive; /* 1= receive vcc, 0 = send vcc */ |
| 87 | }; | 96 | }; |
| 88 | #endif /* _ATMLEC_H_ */ | 97 | #endif /* _ATMLEC_H_ */ |
diff --git a/include/linux/audit.h b/include/linux/audit.h index 42719d07612a..c3aa09751814 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -95,12 +95,11 @@ | |||
| 95 | #define AUDIT_MAC_POLICY_LOAD 1403 /* Policy file load */ | 95 | #define AUDIT_MAC_POLICY_LOAD 1403 /* Policy file load */ |
| 96 | #define AUDIT_MAC_STATUS 1404 /* Changed enforcing,permissive,off */ | 96 | #define AUDIT_MAC_STATUS 1404 /* Changed enforcing,permissive,off */ |
| 97 | #define AUDIT_MAC_CONFIG_CHANGE 1405 /* Changes to booleans */ | 97 | #define AUDIT_MAC_CONFIG_CHANGE 1405 /* Changes to booleans */ |
| 98 | #define AUDIT_MAC_UNLBL_ACCEPT 1406 /* NetLabel: allow unlabeled traffic */ | 98 | #define AUDIT_MAC_UNLBL_ALLOW 1406 /* NetLabel: allow unlabeled traffic */ |
| 99 | #define AUDIT_MAC_UNLBL_DENY 1407 /* NetLabel: deny unlabeled traffic */ | 99 | #define AUDIT_MAC_CIPSOV4_ADD 1407 /* NetLabel: add CIPSOv4 DOI entry */ |
| 100 | #define AUDIT_MAC_CIPSOV4_ADD 1408 /* NetLabel: add CIPSOv4 DOI entry */ | 100 | #define AUDIT_MAC_CIPSOV4_DEL 1408 /* NetLabel: del CIPSOv4 DOI entry */ |
| 101 | #define AUDIT_MAC_CIPSOV4_DEL 1409 /* NetLabel: del CIPSOv4 DOI entry */ | 101 | #define AUDIT_MAC_MAP_ADD 1409 /* NetLabel: add LSM domain mapping */ |
| 102 | #define AUDIT_MAC_MAP_ADD 1410 /* NetLabel: add LSM domain mapping */ | 102 | #define AUDIT_MAC_MAP_DEL 1410 /* NetLabel: del LSM domain mapping */ |
| 103 | #define AUDIT_MAC_MAP_DEL 1411 /* NetLabel: del LSM domain mapping */ | ||
| 104 | 103 | ||
| 105 | #define AUDIT_FIRST_KERN_ANOM_MSG 1700 | 104 | #define AUDIT_FIRST_KERN_ANOM_MSG 1700 |
| 106 | #define AUDIT_LAST_KERN_ANOM_MSG 1799 | 105 | #define AUDIT_LAST_KERN_ANOM_MSG 1799 |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index b7e85ff045ea..c9ffbc3843d5 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -507,6 +507,7 @@ | |||
| 507 | #define PCI_DEVICE_ID_AMD_8151_0 0x7454 | 507 | #define PCI_DEVICE_ID_AMD_8151_0 0x7454 |
| 508 | #define PCI_DEVICE_ID_AMD_8131_BRIDGE 0x7450 | 508 | #define PCI_DEVICE_ID_AMD_8131_BRIDGE 0x7450 |
| 509 | #define PCI_DEVICE_ID_AMD_8131_APIC 0x7451 | 509 | #define PCI_DEVICE_ID_AMD_8131_APIC 0x7451 |
| 510 | #define PCI_DEVICE_ID_AMD_8132_BRIDGE 0x7458 | ||
| 510 | #define PCI_DEVICE_ID_AMD_CS5536_ISA 0x2090 | 511 | #define PCI_DEVICE_ID_AMD_CS5536_ISA 0x2090 |
| 511 | #define PCI_DEVICE_ID_AMD_CS5536_FLASH 0x2091 | 512 | #define PCI_DEVICE_ID_AMD_CS5536_FLASH 0x2091 |
| 512 | #define PCI_DEVICE_ID_AMD_CS5536_AUDIO 0x2093 | 513 | #define PCI_DEVICE_ID_AMD_CS5536_AUDIO 0x2093 |
diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h index 5d6ae1b2b196..718b4d9c891f 100644 --- a/include/net/cipso_ipv4.h +++ b/include/net/cipso_ipv4.h | |||
| @@ -129,7 +129,7 @@ extern int cipso_v4_rbm_strictvalid; | |||
| 129 | #ifdef CONFIG_NETLABEL | 129 | #ifdef CONFIG_NETLABEL |
| 130 | int cipso_v4_doi_add(struct cipso_v4_doi *doi_def); | 130 | int cipso_v4_doi_add(struct cipso_v4_doi *doi_def); |
| 131 | int cipso_v4_doi_remove(u32 doi, | 131 | int cipso_v4_doi_remove(u32 doi, |
| 132 | u32 audit_secid, | 132 | struct netlbl_audit *audit_info, |
| 133 | void (*callback) (struct rcu_head * head)); | 133 | void (*callback) (struct rcu_head * head)); |
| 134 | struct cipso_v4_doi *cipso_v4_doi_getdef(u32 doi); | 134 | struct cipso_v4_doi *cipso_v4_doi_getdef(u32 doi); |
| 135 | int cipso_v4_doi_walk(u32 *skip_cnt, | 135 | int cipso_v4_doi_walk(u32 *skip_cnt, |
| @@ -145,7 +145,7 @@ static inline int cipso_v4_doi_add(struct cipso_v4_doi *doi_def) | |||
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | static inline int cipso_v4_doi_remove(u32 doi, | 147 | static inline int cipso_v4_doi_remove(u32 doi, |
| 148 | u32 audit_secid, | 148 | struct netlbl_audit *audit_info, |
| 149 | void (*callback) (struct rcu_head * head)) | 149 | void (*callback) (struct rcu_head * head)) |
| 150 | { | 150 | { |
| 151 | return 0; | 151 | return 0; |
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 190bfdbbdba6..c63a58058e21 100644 --- a/include/net/netlabel.h +++ b/include/net/netlabel.h | |||
| @@ -92,11 +92,17 @@ | |||
| 92 | * | 92 | * |
| 93 | */ | 93 | */ |
| 94 | 94 | ||
| 95 | /* NetLabel audit information */ | ||
| 96 | struct netlbl_audit { | ||
| 97 | u32 secid; | ||
| 98 | uid_t loginuid; | ||
| 99 | }; | ||
| 100 | |||
| 95 | /* Domain mapping definition struct */ | 101 | /* Domain mapping definition struct */ |
| 96 | struct netlbl_dom_map; | 102 | struct netlbl_dom_map; |
| 97 | 103 | ||
| 98 | /* Domain mapping operations */ | 104 | /* Domain mapping operations */ |
| 99 | int netlbl_domhsh_remove(const char *domain, u32 audit_secid); | 105 | int netlbl_domhsh_remove(const char *domain, struct netlbl_audit *audit_info); |
| 100 | 106 | ||
| 101 | /* LSM security attributes */ | 107 | /* LSM security attributes */ |
| 102 | struct netlbl_lsm_cache { | 108 | struct netlbl_lsm_cache { |
