2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/Documentation/Configure.help
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/Documentation/Configure.help
|
|
|
|
+++ linux-2.4.35.4/Documentation/Configure.help
|
|
|
|
@@ -10675,6 +10675,20 @@ CONFIG_TUN
|
2005-05-26 18:55:52 +03:00
|
|
|
|
|
|
|
If you don't know what to use this for, you don't need it.
|
|
|
|
|
|
|
|
+Allow Net Devices to contribute to /dev/random
|
|
|
|
+CONFIG_NET_RANDOM
|
|
|
|
+ If you say Y here, network device interrupts will contribute to the
|
|
|
|
+ kernel entropy pool. Normally, block devices and some other devices
|
|
|
|
+ feed the pool. Some systems, such as those that are headless or diskless,
|
|
|
|
+ need additional entropy sources. Some people, however, feel that network
|
|
|
|
+ devices should not contribute to /dev/random because an external attacker
|
|
|
|
+ could observe incoming packets in an attempt to learn the entropy pool's
|
|
|
|
+ state. If you say N, no network device will contribute entropy.
|
|
|
|
+
|
|
|
|
+ If you believe there is a chance of your network packets being observed
|
|
|
|
+ and you doubt the security of the entropy pool's one-way hash, do not
|
|
|
|
+ enable this. If unsure, say N.
|
|
|
|
+
|
|
|
|
Ethertap network tap (OBSOLETE)
|
|
|
|
CONFIG_ETHERTAP
|
|
|
|
If you say Y here (and have said Y to "Kernel/User network link
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/drivers/net/Config.in
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/drivers/net/Config.in
|
|
|
|
+++ linux-2.4.35.4/drivers/net/Config.in
|
|
|
|
@@ -8,6 +8,7 @@ tristate 'Dummy net driver support' CONF
|
2005-05-26 18:55:52 +03:00
|
|
|
tristate 'Bonding driver support' CONFIG_BONDING
|
|
|
|
tristate 'EQL (serial line load balancing) support' CONFIG_EQUALIZER
|
|
|
|
tristate 'Universal TUN/TAP device driver support' CONFIG_TUN
|
|
|
|
+bool 'Allow Net Devices to contribute to /dev/random' CONFIG_NET_RANDOM
|
|
|
|
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
|
|
|
|
tristate 'Ethertap network tap (OBSOLETE)' CONFIG_ETHERTAP
|
|
|
|
fi
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-alpha/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-alpha/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-alpha/signal.h
|
|
|
|
@@ -121,8 +121,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x40000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 1 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 2 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 3 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-arm/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-arm/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-arm/signal.h
|
|
|
|
@@ -125,8 +125,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE 0x80000000
|
|
|
|
#define SA_SAMPLE_RANDOM 0x10000000
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-cris/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-cris/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-cris/signal.h
|
|
|
|
@@ -120,8 +120,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-i386/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-i386/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-i386/signal.h
|
|
|
|
@@ -119,8 +119,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-ia64/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-ia64/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-ia64/signal.h
|
2005-05-26 18:55:52 +03:00
|
|
|
@@ -117,6 +117,12 @@
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
#define SA_PERCPU_IRQ 0x02000000
|
|
|
|
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-m68k/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-m68k/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-m68k/signal.h
|
|
|
|
@@ -116,8 +116,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-mips/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-mips/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-mips/signal.h
|
|
|
|
@@ -111,6 +111,12 @@ typedef unsigned long old_sigset_t; /*
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x02000000
|
|
|
|
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#define SIG_BLOCK 1 /* for blocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-mips64/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-mips64/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-mips64/signal.h
|
|
|
|
@@ -119,6 +119,12 @@ typedef unsigned int old_sigset_t32;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x02000000
|
|
|
|
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#define SIG_BLOCK 1 /* for blocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-parisc/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-parisc/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-parisc/signal.h
|
2005-05-26 18:55:52 +03:00
|
|
|
@@ -100,6 +100,12 @@
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-ppc/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-ppc/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-ppc/signal.h
|
|
|
|
@@ -111,6 +111,13 @@ typedef struct {
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
Index: linux-2.4.35.4/include/asm-s390/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-s390/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-s390/signal.h
|
|
|
|
@@ -129,8 +129,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
#define SA_DOPATHGROUP 0x00100000
|
|
|
|
#define SA_FORCE 0x00200000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-s390x/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-s390x/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-s390x/signal.h
|
|
|
|
@@ -129,8 +129,15 @@ typedef unsigned long sigset_t;
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
#define SA_DOPATHGROUP 0x00100000
|
|
|
|
#define SA_FORCE 0x00200000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-sh/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-sh/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-sh/signal.h
|
|
|
|
@@ -107,8 +107,15 @@ typedef struct {
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_SHIRQ 0x04000000
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SIG_BLOCK 0 /* for blocking signals */
|
|
|
|
#define SIG_UNBLOCK 1 /* for unblocking signals */
|
2008-01-06 21:28:07 +02:00
|
|
|
#define SIG_SETMASK 2 /* for setting the signal mask */
|
|
|
|
Index: linux-2.4.35.4/include/asm-sparc/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-sparc/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-sparc/signal.h
|
|
|
|
@@ -176,8 +176,15 @@ struct sigstack {
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_STATIC_ALLOC 0x80
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
/* Type of a signal handler. */
|
|
|
|
#ifdef __KERNEL__
|
2008-01-06 21:28:07 +02:00
|
|
|
typedef void (*__sighandler_t)(int, int, struct sigcontext *, char *);
|
|
|
|
Index: linux-2.4.35.4/include/asm-sparc64/signal.h
|
|
|
|
===================================================================
|
2008-05-19 16:44:11 +03:00
|
|
|
--- linux-2.4.35.4.orig/include/asm-sparc64/signal.h
|
|
|
|
+++ linux-2.4.35.4/include/asm-sparc64/signal.h
|
|
|
|
@@ -192,8 +192,15 @@ struct sigstack {
|
2005-05-26 18:55:52 +03:00
|
|
|
#define SA_PROBE SA_ONESHOT
|
|
|
|
#define SA_SAMPLE_RANDOM SA_RESTART
|
|
|
|
#define SA_STATIC_ALLOC 0x80
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_NET_RANDOM
|
|
|
|
+#define SA_NET_RANDOM SA_SAMPLE_RANDOM
|
|
|
|
+#else
|
|
|
|
+#define SA_NET_RANDOM 0
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 21:28:07 +02:00
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
+
|
2005-05-26 18:55:52 +03:00
|
|
|
/* Type of a signal handler. */
|
|
|
|
#ifdef __KERNEL__
|
2008-01-06 21:28:07 +02:00
|
|
|
typedef void (*__sighandler_t)(int, struct sigcontext *);
|