diff options
Diffstat (limited to 'include/net/cipso_ipv4.h')
-rw-r--r-- | include/net/cipso_ipv4.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h index bedc7f62e35d..abd443604c9f 100644 --- a/include/net/cipso_ipv4.h +++ b/include/net/cipso_ipv4.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/net.h> | 40 | #include <linux/net.h> |
41 | #include <linux/skbuff.h> | 41 | #include <linux/skbuff.h> |
42 | #include <net/netlabel.h> | 42 | #include <net/netlabel.h> |
43 | #include <net/request_sock.h> | ||
43 | #include <asm/atomic.h> | 44 | #include <asm/atomic.h> |
44 | 45 | ||
45 | /* known doi values */ | 46 | /* known doi values */ |
@@ -215,6 +216,10 @@ int cipso_v4_sock_setattr(struct sock *sk, | |||
215 | const struct netlbl_lsm_secattr *secattr); | 216 | const struct netlbl_lsm_secattr *secattr); |
216 | void cipso_v4_sock_delattr(struct sock *sk); | 217 | void cipso_v4_sock_delattr(struct sock *sk); |
217 | int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr); | 218 | int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr); |
219 | int cipso_v4_req_setattr(struct request_sock *req, | ||
220 | const struct cipso_v4_doi *doi_def, | ||
221 | const struct netlbl_lsm_secattr *secattr); | ||
222 | void cipso_v4_req_delattr(struct request_sock *req); | ||
218 | int cipso_v4_skbuff_setattr(struct sk_buff *skb, | 223 | int cipso_v4_skbuff_setattr(struct sk_buff *skb, |
219 | const struct cipso_v4_doi *doi_def, | 224 | const struct cipso_v4_doi *doi_def, |
220 | const struct netlbl_lsm_secattr *secattr); | 225 | const struct netlbl_lsm_secattr *secattr); |
@@ -247,6 +252,18 @@ static inline int cipso_v4_sock_getattr(struct sock *sk, | |||
247 | return -ENOSYS; | 252 | return -ENOSYS; |
248 | } | 253 | } |
249 | 254 | ||
255 | static inline int cipso_v4_req_setattr(struct request_sock *req, | ||
256 | const struct cipso_v4_doi *doi_def, | ||
257 | const struct netlbl_lsm_secattr *secattr) | ||
258 | { | ||
259 | return -ENOSYS; | ||
260 | } | ||
261 | |||
262 | static inline void cipso_v4_req_delattr(struct request_sock *req) | ||
263 | { | ||
264 | return; | ||
265 | } | ||
266 | |||
250 | static inline int cipso_v4_skbuff_setattr(struct sk_buff *skb, | 267 | static inline int cipso_v4_skbuff_setattr(struct sk_buff *skb, |
251 | const struct cipso_v4_doi *doi_def, | 268 | const struct cipso_v4_doi *doi_def, |
252 | const struct netlbl_lsm_secattr *secattr) | 269 | const struct netlbl_lsm_secattr *secattr) |