aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlabel.h
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2008-10-10 10:16:31 -0400
committerPaul Moore <paul.moore@hp.com>2008-10-10 10:16:31 -0400
commitdfaebe9825ff34983778f287101bc5f3bce00640 (patch)
tree4dccdcdcecd57fc8bfc083ff30d9e0ecb2e7ecba /include/net/netlabel.h
parent99d854d231ce141850b988bdc7e2e7c78f49b03a (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 'include/net/netlabel.h')
-rw-r--r--include/net/netlabel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 5303749b7093..e16db0961265 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -382,7 +382,7 @@ int netlbl_sock_getattr(struct sock *sk,
382int netlbl_skbuff_getattr(const struct sk_buff *skb, 382int netlbl_skbuff_getattr(const struct sk_buff *skb,
383 u16 family, 383 u16 family,
384 struct netlbl_lsm_secattr *secattr); 384 struct netlbl_lsm_secattr *secattr);
385void netlbl_skbuff_err(struct sk_buff *skb, int error); 385void netlbl_skbuff_err(struct sk_buff *skb, int error, int gateway);
386 386
387/* 387/*
388 * LSM label mapping cache operations 388 * LSM label mapping cache operations
@@ -454,7 +454,9 @@ static inline int netlbl_skbuff_getattr(const struct sk_buff *skb,
454{ 454{
455 return -ENOSYS; 455 return -ENOSYS;
456} 456}
457static inline void netlbl_skbuff_err(struct sk_buff *skb, int error) 457static inline void netlbl_skbuff_err(struct sk_buff *skb,
458 int error,
459 int gateway)
458{ 460{
459 return; 461 return;
460} 462}