diff options
author | Paul Moore <paul.moore@hp.com> | 2008-10-10 10:16:31 -0400 |
---|---|---|
committer | Paul Moore <paul.moore@hp.com> | 2008-10-10 10:16:31 -0400 |
commit | dfaebe9825ff34983778f287101bc5f3bce00640 (patch) | |
tree | 4dccdcdcecd57fc8bfc083ff30d9e0ecb2e7ecba /security/selinux/include | |
parent | 99d854d231ce141850b988bdc7e2e7c78f49b03a (diff) |
selinux: Fix missing calls to netlbl_skbuff_err()
At some point I think I messed up and dropped the calls to netlbl_skbuff_err()
which are necessary for CIPSO to send error notifications to remote systems.
This patch re-introduces the error handling calls into the SELinux code.
Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include')
-rw-r--r-- | security/selinux/include/netlabel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/security/selinux/include/netlabel.h b/security/selinux/include/netlabel.h index 487a7d81fe20..d4e3ac8a7fbf 100644 --- a/security/selinux/include/netlabel.h +++ b/security/selinux/include/netlabel.h | |||
@@ -39,6 +39,8 @@ | |||
39 | #ifdef CONFIG_NETLABEL | 39 | #ifdef CONFIG_NETLABEL |
40 | void selinux_netlbl_cache_invalidate(void); | 40 | void selinux_netlbl_cache_invalidate(void); |
41 | 41 | ||
42 | void selinux_netlbl_err(struct sk_buff *skb, int error, int gateway); | ||
43 | |||
42 | void selinux_netlbl_sk_security_reset(struct sk_security_struct *ssec, | 44 | void selinux_netlbl_sk_security_reset(struct sk_security_struct *ssec, |
43 | int family); | 45 | int family); |
44 | 46 | ||
@@ -63,6 +65,13 @@ static inline void selinux_netlbl_cache_invalidate(void) | |||
63 | return; | 65 | return; |
64 | } | 66 | } |
65 | 67 | ||
68 | static inline void selinux_netlbl_err(struct sk_buff *skb, | ||
69 | int error, | ||
70 | int gateway) | ||
71 | { | ||
72 | return; | ||
73 | } | ||
74 | |||
66 | static inline void selinux_netlbl_sk_security_reset( | 75 | static inline void selinux_netlbl_sk_security_reset( |
67 | struct sk_security_struct *ssec, | 76 | struct sk_security_struct *ssec, |
68 | int family) | 77 | int family) |