lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 23 Jun 2007 05:26:52 +0530
From:	"Satyam Sharma" <satyam.sharma@...il.com>
To:	"Yoshinori Sato" <ysato@...rs.sourceforge.jp>
Cc:	"David Miller" <davem@...emloft.net>, linux-kernel@...r.kernel.org,
	netdev@...r.kernel.org
Subject: [PATCH] inetdevice.h must include sysctl.h (was Re: [PATCH] CONFIG_INET depend on CONFIG_SYSCTL)

Hi Yoshinori, David,

On 6/22/07, Yoshinori Sato <ysato@...rs.sourceforge.jp> wrote:
> At Tue, 12 Jun 2007 23:05:45 -0700 (PDT),
> David Miller wrote:
> >
> > From: Yoshinori Sato <ysato@...rs.sourceforge.jp>
> > Date: Wed, 13 Jun 2007 14:59:16 +0900
> >
> > > At Tue, 12 Jun 2007 01:08:55 -0700 (PDT),
> > > David Miller wrote:
> > >
> > > > 2) It is much better to add the appropriate CONFIG_SYSCTL
> > > >    ifdefs to the INET code than to force it on for everyone.
> > >
> > > It examined that, but many corrections become necessary.
> >
> > I understand, but embedded people will not be happy that
> > SYSFS is a requirement for IPV4 networking.  Every little
> > bit of space savings matters for them.
>
> A reply became late, sorry.
>
> I do not check it in detail, but there seem to be part a few
> depending SYSFS.
> I need to check whether can separate a SYSFS depending part.

This thread started with SYSCTL but seems to have drifted to
SYSFS (???) for some unknown reason :-)

Anyway, INET does not need to depend upon SYSCTL.
All the code in net/ that depends on SYSCTL has already
been neatly separated out ...

Patch (tested with attached .config) below explains and resolves
the build failure. Kindly apply.

Satyam

---

[PATCH] include sysctl.h from inetdevice.h

When CONFIG_INET=y and CONFIG_SYSCTL=n:

In file included from net/core/netpoll.c:16:
include/linux/inetdevice.h:15: error:
'__NET_IPV4_CONF_MAX' undeclared here (not in a function)
make[2]: *** [net/core/netpoll.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2

So #include sysctl.h from inetdevice.h.

Signed-off-by: Satyam Sharma <satyam.sharma@...il.com>

---

diff -ruNp a/include/linux/inetdevice.h b/include/linux/inetdevice.h
--- a/include/linux/inetdevice.h	2007-06-23 05:15:51.000000000 +0530
+++ b/include/linux/inetdevice.h	2007-06-23 04:54:59.000000000 +0530
@@ -8,6 +8,7 @@
 #include <linux/netdevice.h>
 #include <linux/rcupdate.h>
 #include <linux/timer.h>
+#include <linux/sysctl.h>

 struct ipv4_devconf
 {

Download attachment "config" of type "application/octet-stream" (64499 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ