diff options
author | Paul Moore <paul.moore@hp.com> | 2008-10-10 10:16:32 -0400 |
---|---|---|
committer | Paul Moore <paul.moore@hp.com> | 2008-10-10 10:16:32 -0400 |
commit | 63c41688743760631188cf0f4ae986a6793ccb0a (patch) | |
tree | b270091d7b763e8b6c5073d4ca618f0d36065188 /net/netlabel/netlabel_addrlist.h | |
parent | 61e1068219950c672ce979719ad2be3aadb00d7d (diff) |
netlabel: Add network address selectors to the NetLabel/LSM domain mapping
This patch extends the NetLabel traffic labeling capabilities to individual
packets based not only on the LSM domain but the by the destination address
as well. The changes here only affect the core NetLabel infrastructre,
changes to the NetLabel KAPI and individial protocol engines are also
required but are split out into a different patch to ease review.
Signed-off-by: Paul Moore <paul.moore@hp.com>
Reviewed-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'net/netlabel/netlabel_addrlist.h')
-rw-r--r-- | net/netlabel/netlabel_addrlist.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/netlabel/netlabel_addrlist.h b/net/netlabel/netlabel_addrlist.h index 0c41df057fa8..0242bead405f 100644 --- a/net/netlabel/netlabel_addrlist.h +++ b/net/netlabel/netlabel_addrlist.h | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/rcupdate.h> | 36 | #include <linux/rcupdate.h> |
37 | #include <linux/list.h> | 37 | #include <linux/list.h> |
38 | #include <linux/in6.h> | 38 | #include <linux/in6.h> |
39 | #include <linux/audit.h> | ||
39 | 40 | ||
40 | /** | 41 | /** |
41 | * struct netlbl_af4list - NetLabel IPv4 address list | 42 | * struct netlbl_af4list - NetLabel IPv4 address list |
@@ -116,6 +117,12 @@ struct netlbl_af4list *netlbl_af4list_remove(__be32 addr, __be32 mask, | |||
116 | void netlbl_af4list_remove_entry(struct netlbl_af4list *entry); | 117 | void netlbl_af4list_remove_entry(struct netlbl_af4list *entry); |
117 | struct netlbl_af4list *netlbl_af4list_search(__be32 addr, | 118 | struct netlbl_af4list *netlbl_af4list_search(__be32 addr, |
118 | struct list_head *head); | 119 | struct list_head *head); |
120 | struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr, | ||
121 | __be32 mask, | ||
122 | struct list_head *head); | ||
123 | void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, | ||
124 | int src, const char *dev, | ||
125 | __be32 addr, __be32 mask); | ||
119 | 126 | ||
120 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 127 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) |
121 | 128 | ||
@@ -169,6 +176,14 @@ struct netlbl_af6list *netlbl_af6list_remove(const struct in6_addr *addr, | |||
169 | void netlbl_af6list_remove_entry(struct netlbl_af6list *entry); | 176 | void netlbl_af6list_remove_entry(struct netlbl_af6list *entry); |
170 | struct netlbl_af6list *netlbl_af6list_search(const struct in6_addr *addr, | 177 | struct netlbl_af6list *netlbl_af6list_search(const struct in6_addr *addr, |
171 | struct list_head *head); | 178 | struct list_head *head); |
179 | struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr, | ||
180 | const struct in6_addr *mask, | ||
181 | struct list_head *head); | ||
182 | void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, | ||
183 | int src, | ||
184 | const char *dev, | ||
185 | const struct in6_addr *addr, | ||
186 | const struct in6_addr *mask); | ||
172 | #endif /* IPV6 */ | 187 | #endif /* IPV6 */ |
173 | 188 | ||
174 | #endif | 189 | #endif |