diff options
author | Paul Moore <paul.moore@hp.com> | 2008-01-29 08:38:04 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-01-29 16:17:20 -0500 |
commit | 75e22910cf0c26802b09dac2e34c13e648d3ed02 (patch) | |
tree | bf5f5c62f6db8a3057a0265dc7748bf310d26d4a /include/net/netlabel.h | |
parent | 16efd45435fa695b501b7f73c3259bd7c77cc12c (diff) |
NetLabel: Add IP address family information to the netlbl_skbuff_getattr() function
In order to do any sort of IP header inspection of incoming packets we need to
know which address family, AF_INET/AF_INET6/etc., it belongs to and since the
sk_buff structure does not store this information we need to pass along the
address family separate from the packet itself.
Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/net/netlabel.h')
-rw-r--r-- | include/net/netlabel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 18b73cf507df..a3bffb4bb749 100644 --- a/include/net/netlabel.h +++ b/include/net/netlabel.h | |||
@@ -363,6 +363,7 @@ int netlbl_sock_setattr(struct sock *sk, | |||
363 | int netlbl_sock_getattr(struct sock *sk, | 363 | int netlbl_sock_getattr(struct sock *sk, |
364 | struct netlbl_lsm_secattr *secattr); | 364 | struct netlbl_lsm_secattr *secattr); |
365 | int netlbl_skbuff_getattr(const struct sk_buff *skb, | 365 | int netlbl_skbuff_getattr(const struct sk_buff *skb, |
366 | u16 family, | ||
366 | struct netlbl_lsm_secattr *secattr); | 367 | struct netlbl_lsm_secattr *secattr); |
367 | void netlbl_skbuff_err(struct sk_buff *skb, int error); | 368 | void netlbl_skbuff_err(struct sk_buff *skb, int error); |
368 | 369 | ||
@@ -415,6 +416,7 @@ static inline int netlbl_sock_getattr(struct sock *sk, | |||
415 | return -ENOSYS; | 416 | return -ENOSYS; |
416 | } | 417 | } |
417 | static inline int netlbl_skbuff_getattr(const struct sk_buff *skb, | 418 | static inline int netlbl_skbuff_getattr(const struct sk_buff *skb, |
419 | u16 family, | ||
418 | struct netlbl_lsm_secattr *secattr) | 420 | struct netlbl_lsm_secattr *secattr) |
419 | { | 421 | { |
420 | return -ENOSYS; | 422 | return -ENOSYS; |