[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080721.134200.195306719.davem@davemloft.net>
Date: Mon, 21 Jul 2008 13:42:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: olaf@...fle.de
Cc: netdev@...r.kernel.org
Subject: Re: include/linux/ipv6.h, struct ipv6_devconf leaks to userspace
From: Olaf Hering <olaf@...fle.de>
Date: Mon, 21 Jul 2008 14:34:30 +0200
>
> Found by make O="$header_dir" headers_install_all in 2.6.26:
>
> struct ipv6_devconf contains conditional members, guarded by CONFIG_*.
>
> Please move the struct into #ifdef __KERNEL__
I've applied the following patch, let me know if it doesn't
fix the problem.
Thanks.
ipv6: __KERNEL__ ifdef struct ipv6_devconf
Based upon a report by Olaf Hering.
Signed-off-by: David S. Miller <davem@...emloft.net>
---
include/linux/ipv6.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index 391ad08..641e026 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -123,6 +123,7 @@ struct ipv6hdr {
struct in6_addr daddr;
};
+#ifdef __KERNEL__
/*
* This structure contains configuration options per IPv6 link.
*/
@@ -167,6 +168,7 @@ struct ipv6_devconf {
__s32 accept_dad;
void *sysctl;
};
+#endif
/* index values for the variables in ipv6_devconf */
enum {
--
1.5.6.4.433.g09651
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists