1 diff -urN linux-2.4.18/Documentation/Configure.help linux/Documentation/Configure.help
2 --- linux-2.4.18/Documentation/Configure.help Mon Feb 18 16:41:04 2002
3 +++ linux/Documentation/Configure.help Thu Feb 21 00:00:39 2002
6 If you don't know what to use this for, you don't need it.
8 +Allow Net Devices to contribute to /dev/random
10 + If you say Y here, network device interrupts will contribute to the
11 + kernel entropy pool. Normally, block devices and some other devices
12 + feed the pool. Some systems, such as those that are headless or diskless,
13 + need additional entropy sources. Some people, however, feel that network
14 + devices should not contribute to /dev/random because an external attacker
15 + could observe incoming packets in an attempt to learn the entropy pool's
16 + state. If you say N, no network device will contribute entropy.
18 + If you believe there is a chance of your network packets being observed
19 + and you doubt the security of the entropy pool's one-way hash, do not
20 + enable this. If unsure, say N.
22 Ethertap network tap (OBSOLETE)
24 If you say Y here (and have said Y to "Kernel/User network link
25 diff -urN linux-2.4.18/drivers/net/Config.in linux/drivers/net/Config.in
26 --- linux-2.4.18/drivers/net/Config.in Mon Feb 18 16:40:13 2002
27 +++ linux/drivers/net/Config.in Thu Feb 21 00:00:39 2002
29 tristate 'Bonding driver support' CONFIG_BONDING
30 tristate 'EQL (serial line load balancing) support' CONFIG_EQUALIZER
31 tristate 'Universal TUN/TAP device driver support' CONFIG_TUN
32 +bool 'Allow Net Devices to contribute to /dev/random' CONFIG_NET_RANDOM
33 if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
34 tristate 'Ethertap network tap (OBSOLETE)' CONFIG_ETHERTAP
36 diff -urN linux-2.4.18/include/asm-alpha/signal.h linux/include/asm-alpha/signal.h
37 --- linux-2.4.18/include/asm-alpha/signal.h Mon Feb 18 16:39:58 2002
38 +++ linux/include/asm-alpha/signal.h Thu Feb 21 00:00:39 2002
40 #define SA_PROBE SA_ONESHOT
41 #define SA_SAMPLE_RANDOM SA_RESTART
42 #define SA_SHIRQ 0x40000000
44 +#ifdef CONFIG_NET_RANDOM
45 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
47 +#define SA_NET_RANDOM 0
50 +#endif /* __KERNEL__ */
52 #define SIG_BLOCK 1 /* for blocking signals */
53 #define SIG_UNBLOCK 2 /* for unblocking signals */
54 #define SIG_SETMASK 3 /* for setting the signal mask */
55 diff -urN linux-2.4.18/include/asm-arm/signal.h linux/include/asm-arm/signal.h
56 --- linux-2.4.18/include/asm-arm/signal.h Mon Feb 18 16:40:02 2002
57 +++ linux/include/asm-arm/signal.h Thu Feb 21 00:00:39 2002
59 #define SA_SAMPLE_RANDOM 0x10000000
60 #define SA_IRQNOMASK 0x08000000
61 #define SA_SHIRQ 0x04000000
63 +#ifdef CONFIG_NET_RANDOM
64 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
66 +#define SA_NET_RANDOM 0
69 +#endif /* __KERNEL__ */
71 #define SIG_BLOCK 0 /* for blocking signals */
72 #define SIG_UNBLOCK 1 /* for unblocking signals */
73 #define SIG_SETMASK 2 /* for setting the signal mask */
74 diff -urN linux-2.4.18/include/asm-cris/signal.h linux/include/asm-cris/signal.h
75 --- linux-2.4.18/include/asm-cris/signal.h Mon Feb 18 16:40:04 2002
76 +++ linux/include/asm-cris/signal.h Thu Feb 21 00:00:39 2002
78 #define SA_PROBE SA_ONESHOT
79 #define SA_SAMPLE_RANDOM SA_RESTART
80 #define SA_SHIRQ 0x04000000
82 +#ifdef CONFIG_NET_RANDOM
83 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
85 +#define SA_NET_RANDOM 0
88 +#endif /* __KERNEL__ */
90 #define SIG_BLOCK 0 /* for blocking signals */
91 #define SIG_UNBLOCK 1 /* for unblocking signals */
92 #define SIG_SETMASK 2 /* for setting the signal mask */
93 diff -urN linux-2.4.18/include/asm-i386/signal.h linux/include/asm-i386/signal.h
94 --- linux-2.4.18/include/asm-i386/signal.h Mon Feb 18 16:39:57 2002
95 +++ linux/include/asm-i386/signal.h Thu Feb 21 00:00:39 2002
97 #define SA_PROBE SA_ONESHOT
98 #define SA_SAMPLE_RANDOM SA_RESTART
99 #define SA_SHIRQ 0x04000000
101 +#ifdef CONFIG_NET_RANDOM
102 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
104 +#define SA_NET_RANDOM 0
107 +#endif /* __KERNEL__ */
109 #define SIG_BLOCK 0 /* for blocking signals */
110 #define SIG_UNBLOCK 1 /* for unblocking signals */
111 #define SIG_SETMASK 2 /* for setting the signal mask */
112 diff -urN linux-2.4.18/include/asm-ia64/signal.h linux/include/asm-ia64/signal.h
113 --- linux-2.4.18/include/asm-ia64/signal.h Mon Feb 18 16:40:02 2002
114 +++ linux/include/asm-ia64/signal.h Thu Feb 21 00:00:39 2002
116 #define SA_SAMPLE_RANDOM SA_RESTART
117 #define SA_SHIRQ 0x04000000
119 +#ifdef CONFIG_NET_RANDOM
120 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
122 +#define SA_NET_RANDOM 0
125 #endif /* __KERNEL__ */
127 #define SIG_BLOCK 0 /* for blocking signals */
128 diff -urN linux-2.4.18/include/asm-m68k/signal.h linux/include/asm-m68k/signal.h
129 --- linux-2.4.18/include/asm-m68k/signal.h Mon Feb 18 16:39:58 2002
130 +++ linux/include/asm-m68k/signal.h Thu Feb 21 00:00:39 2002
132 #define SA_PROBE SA_ONESHOT
133 #define SA_SAMPLE_RANDOM SA_RESTART
134 #define SA_SHIRQ 0x04000000
136 +#ifdef CONFIG_NET_RANDOM
137 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
139 +#define SA_NET_RANDOM 0
142 +#endif /* __KERNEL__ */
144 #define SIG_BLOCK 0 /* for blocking signals */
145 #define SIG_UNBLOCK 1 /* for unblocking signals */
146 #define SIG_SETMASK 2 /* for setting the signal mask */
147 diff -urN linux-2.4.18/include/asm-mips/signal.h linux/include/asm-mips/signal.h
148 --- linux-2.4.18/include/asm-mips/signal.h Mon Feb 18 16:39:57 2002
149 +++ linux/include/asm-mips/signal.h Thu Feb 21 00:00:39 2002
151 #define SA_SAMPLE_RANDOM SA_RESTART
152 #define SA_SHIRQ 0x02000000
154 +#ifdef CONFIG_NET_RANDOM
155 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
157 +#define SA_NET_RANDOM 0
160 #endif /* __KERNEL__ */
162 #define SIG_BLOCK 1 /* for blocking signals */
163 diff -urN linux-2.4.18/include/asm-mips64/signal.h linux/include/asm-mips64/signal.h
164 --- linux-2.4.18/include/asm-mips64/signal.h Mon Feb 18 16:40:03 2002
165 +++ linux/include/asm-mips64/signal.h Thu Feb 21 00:00:39 2002
167 #define SA_SAMPLE_RANDOM SA_RESTART
168 #define SA_SHIRQ 0x02000000
170 +#ifdef CONFIG_NET_RANDOM
171 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
173 +#define SA_NET_RANDOM 0
176 #endif /* __KERNEL__ */
178 #define SIG_BLOCK 1 /* for blocking signals */
179 diff -urN linux-2.4.18/include/asm-parisc/signal.h linux/include/asm-parisc/signal.h
180 --- linux-2.4.18/include/asm-parisc/signal.h Mon Feb 18 16:40:03 2002
181 +++ linux/include/asm-parisc/signal.h Thu Feb 21 00:00:39 2002
183 #define SA_SAMPLE_RANDOM SA_RESTART
184 #define SA_SHIRQ 0x04000000
186 +#ifdef CONFIG_NET_RANDOM
187 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
189 +#define SA_NET_RANDOM 0
192 #endif /* __KERNEL__ */
194 #define SIG_BLOCK 0 /* for blocking signals */
195 diff -urN linux-2.4.18/include/asm-ppc/signal.h linux/include/asm-ppc/signal.h
196 --- linux-2.4.18/include/asm-ppc/signal.h Mon Feb 18 16:39:58 2002
197 +++ linux/include/asm-ppc/signal.h Thu Feb 21 00:00:39 2002
199 #define SA_PROBE SA_ONESHOT
200 #define SA_SAMPLE_RANDOM SA_RESTART
201 #define SA_SHIRQ 0x04000000
203 +#ifdef CONFIG_NET_RANDOM
204 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
206 +#define SA_NET_RANDOM 0
209 +#endif /* __KERNEL__ */
211 #define SIG_BLOCK 0 /* for blocking signals */
212 #define SIG_UNBLOCK 1 /* for unblocking signals */
213 #define SIG_SETMASK 2 /* for setting the signal mask */
214 diff -urN linux-2.4.18/include/asm-s390/signal.h linux/include/asm-s390/signal.h
215 --- linux-2.4.18/include/asm-s390/signal.h Mon Feb 18 16:40:03 2002
216 +++ linux/include/asm-s390/signal.h Thu Feb 21 00:00:39 2002
218 #define SA_PROBE SA_ONESHOT
219 #define SA_SAMPLE_RANDOM SA_RESTART
220 #define SA_SHIRQ 0x04000000
222 +#ifdef CONFIG_NET_RANDOM
223 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
225 +#define SA_NET_RANDOM 0
228 +#endif /* __KERNEL__ */
230 #define SIG_BLOCK 0 /* for blocking signals */
231 #define SIG_UNBLOCK 1 /* for unblocking signals */
232 #define SIG_SETMASK 2 /* for setting the signal mask */
233 diff -urN linux-2.4.18/include/asm-s390x/signal.h linux/include/asm-s390x/signal.h
234 --- linux-2.4.18/include/asm-s390x/signal.h Mon Feb 18 16:40:04 2002
235 +++ linux/include/asm-s390x/signal.h Thu Feb 21 00:00:39 2002
237 #define SA_PROBE SA_ONESHOT
238 #define SA_SAMPLE_RANDOM SA_RESTART
239 #define SA_SHIRQ 0x04000000
241 +#ifdef CONFIG_NET_RANDOM
242 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
244 +#define SA_NET_RANDOM 0
247 +#endif /* __KERNEL__ */
249 #define SIG_BLOCK 0 /* for blocking signals */
250 #define SIG_UNBLOCK 1 /* for unblocking signals */
251 #define SIG_SETMASK 2 /* for setting the signal mask */
252 diff -urN linux-2.4.18/include/asm-sh/signal.h linux/include/asm-sh/signal.h
253 --- linux-2.4.18/include/asm-sh/signal.h Mon Feb 18 16:40:02 2002
254 +++ linux/include/asm-sh/signal.h Thu Feb 21 00:00:39 2002
256 #define SA_PROBE SA_ONESHOT
257 #define SA_SAMPLE_RANDOM SA_RESTART
258 #define SA_SHIRQ 0x04000000
260 +#ifdef CONFIG_NET_RANDOM
261 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
263 +#define SA_NET_RANDOM 0
266 +#endif /* __KERNEL__ */
268 #define SIG_BLOCK 0 /* for blocking signals */
269 #define SIG_UNBLOCK 1 /* for unblocking signals */
270 #define SIG_SETMASK 2 /* for setting the signal mask */
271 diff -urN linux-2.4.18/include/asm-sparc/signal.h linux/include/asm-sparc/signal.h
272 --- linux-2.4.18/include/asm-sparc/signal.h Mon Feb 18 16:39:58 2002
273 +++ linux/include/asm-sparc/signal.h Thu Feb 21 00:00:39 2002
275 #define SA_PROBE SA_ONESHOT
276 #define SA_SAMPLE_RANDOM SA_RESTART
277 #define SA_STATIC_ALLOC 0x80
279 +#ifdef CONFIG_NET_RANDOM
280 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
282 +#define SA_NET_RANDOM 0
285 +#endif /* __KERNEL__ */
287 /* Type of a signal handler. */
289 typedef void (*__sighandler_t)(int, int, struct sigcontext *, char *);
290 diff -urN linux-2.4.18/include/asm-sparc64/signal.h linux/include/asm-sparc64/signal.h
291 --- linux-2.4.18/include/asm-sparc64/signal.h Mon Feb 18 16:39:59 2002
292 +++ linux/include/asm-sparc64/signal.h Thu Feb 21 00:00:39 2002
294 #define SA_PROBE SA_ONESHOT
295 #define SA_SAMPLE_RANDOM SA_RESTART
296 #define SA_STATIC_ALLOC 0x80
298 +#ifdef CONFIG_NET_RANDOM
299 +#define SA_NET_RANDOM SA_SAMPLE_RANDOM
301 +#define SA_NET_RANDOM 0
304 +#endif /* __KERNEL__ */
306 /* Type of a signal handler. */
308 typedef void (*__sighandler_t)(int, struct sigcontext *);