~ubuntu-branches/ubuntu/oneiric/openbsd-inetd/oneiric

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2005-01-02 02:40:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050102024043-e58kyd2n8kdrslea
Tags: 0.20040915-1
* New CVS snapshot.
  + Fixes gcc 4.0 FTBFS. (Closes: #287860)
* Made the init script source /etc/default/openbsd-inetd, if present.
  (Closes: #251224)
* Documented in inetd(8) that switching between binding to INADDR_ANY and
  to a specific address requires restarting the daemon. (Closes: #242392)
* Added code to create the requested type of IPv6 socket using
  setsockopt(IPPROTO_IPV6). This requires a modern 2.4 or 2.6 kernel.
* Added Conflicts+Replaces+Provides: netkit-inetd to fully replace it.
  prerm will unlink netkit-inetd's conffiles and the init script is
  named openbsd-inetd to allow purging netkit-inetd.
  Alternative solutions to both issues are welcome.
* Changed the default inetd.conf to satisfy people who think that every
  listening socket is a security hole: no internal services are enabled
  by default. This means that the daemon will not even be started by the
  init script until some service is enabled in inetd.conf.
* Removed from the default inetd.conf the already-commented examples
  of the internal services which are actually dangerous to run.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
? ChangeLog
2
 
? Makefile.debian
3
 
? build
4
 
? debian
5
 
? inetd
6
 
? setproctitle.c
7
 
? setproctitle.h
8
 
? test.conf
 
1
? AA3
9
2
 
10
3
RCS file: /cvs/src/usr.sbin/inetd/Makefile,v
11
4
Working file: Makefile
14
7
locks: strict
15
8
access list:
16
9
symbolic names:
 
10
        OPENBSD_3_6: 1.3.0.20
 
11
        OPENBSD_3_6_BASE: 1.3
 
12
        OPENBSD_3_5: 1.3.0.18
 
13
        OPENBSD_3_5_BASE: 1.3
 
14
        OPENBSD_3_4: 1.3.0.16
 
15
        OPENBSD_3_4_BASE: 1.3
 
16
        OPENBSD_3_3: 1.3.0.14
 
17
        OPENBSD_3_3_BASE: 1.3
 
18
        OPENBSD_3_2: 1.3.0.12
 
19
        OPENBSD_3_2_BASE: 1.3
17
20
        OPENBSD_3_1: 1.3.0.10
18
21
        OPENBSD_3_1_BASE: 1.3
19
22
        OPENBSD_3_0: 1.3.0.8
40
43
        OPENBSD_2_0_BASE: 1.1.1.1
41
44
        netbsd_1_1: 1.1.1.1
42
45
keyword substitution: kv
43
 
total revisions: 4;     selected revisions: 1
 
46
total revisions: 4;     selected revisions: 4
44
47
description:
45
48
----------------------------
46
49
revision 1.3
47
50
date: 2000/03/31 01:00:49;  author: deraadt;  state: Exp;  lines: +2 -2
48
51
install inetd.conf(5) here instead
 
52
----------------------------
 
53
revision 1.2
 
54
date: 1997/09/21 11:43:44;  author: deraadt;  state: Exp;  lines: +1 -2
 
55
$OpenBSD$
 
56
----------------------------
 
57
revision 1.1
 
58
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;
 
59
branches:  1.1.1;
 
60
Initial revision
 
61
----------------------------
 
62
revision 1.1.1.1
 
63
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;  lines: +0 -0
 
64
initial import of NetBSD tree
49
65
=============================================================================
50
66
 
51
67
RCS file: /cvs/src/usr.sbin/inetd/inetd.8,v
52
68
Working file: inetd.8
53
 
head: 1.20
 
69
head: 1.27
54
70
branch:
55
71
locks: strict
56
72
access list:
57
73
symbolic names:
 
74
        OPENBSD_3_6: 1.27.0.2
 
75
        OPENBSD_3_6_BASE: 1.27
 
76
        OPENBSD_3_5: 1.25.0.4
 
77
        OPENBSD_3_5_BASE: 1.25
 
78
        OPENBSD_3_4: 1.25.0.2
 
79
        OPENBSD_3_4_BASE: 1.25
 
80
        OPENBSD_3_3: 1.22.0.2
 
81
        OPENBSD_3_3_BASE: 1.22
 
82
        OPENBSD_3_2: 1.20.0.2
 
83
        OPENBSD_3_2_BASE: 1.20
58
84
        OPENBSD_3_1: 1.19.0.4
59
85
        OPENBSD_3_1_BASE: 1.19
60
86
        OPENBSD_3_0: 1.19.0.2
81
107
        OPENBSD_2_0_BASE: 1.1.1.1
82
108
        netbsd_1_1: 1.1.1.1
83
109
keyword substitution: kv
84
 
total revisions: 21;    selected revisions: 2
 
110
total revisions: 28;    selected revisions: 28
85
111
description:
86
112
----------------------------
 
113
revision 1.27
 
114
date: 2004/06/30 07:58:12;  author: otto;  state: Exp;  lines: +7 -1
 
115
Unbreak unix domain sockets and properly detect and report truncation
 
116
of the socket path name. Based on a diff from Juan Vera, with changes
 
117
by me and millert@.  ok millert@ djm@; man page ok jmc@
 
118
----------------------------
 
119
revision 1.26
 
120
date: 2004/04/24 21:40:35;  author: millert;  state: Exp;  lines: +10 -3
 
121
Don't return NULL in getconfigent() when an unresolvable hostname
 
122
or unsupported address family is specified.  This simplifies the
 
123
hostname/address lookup loops and gets rid of the skip label.
 
124
Found by mpech@.  OK deraadt@ and otto@
 
125
----------------------------
 
126
revision 1.25
 
127
date: 2003/06/12 12:59:50;  author: jmc;  state: Exp;  lines: +20 -20
 
128
- section reorder
 
129
- macro fixes
 
130
- kill whitespace at EOL
 
131
- new sentence, new line
 
132
----------------------------
 
133
revision 1.24
 
134
date: 2003/06/02 23:36:53;  author: millert;  state: Exp;  lines: +2 -6
 
135
Remove the advertising clause in the UCB license which Berkeley
 
136
rescinded 22 July 1999.  Proofed by myself and Theo.
 
137
----------------------------
 
138
revision 1.23
 
139
date: 2003/04/08 01:26:21;  author: david;  state: Exp;  lines: +1 -3
 
140
identd has been nowait for 5 years now
 
141
reported by Brad Ely <elyb328@apk.net>
 
142
ok tedu@
 
143
----------------------------
 
144
revision 1.22
 
145
date: 2003/02/03 17:46:56;  author: jmc;  state: Exp;  lines: +5 -6
 
146
typos;
 
147
ipsecadm(8): examples ho@
 
148
             help and ok markus@
 
149
----------------------------
 
150
revision 1.21
 
151
date: 2003/01/18 23:40:58;  author: deraadt;  state: Exp;  lines: +4 -4
 
152
more typos; jmc@prioris.mini.pw.edu.pl
 
153
----------------------------
87
154
revision 1.20
88
155
date: 2002/05/06 22:24:58;  author: millert;  state: Exp;  lines: +3 -3
89
156
Kill rlogind and rexecd Xr's and add Xr's for things we actually use.
90
157
----------------------------
 
158
revision 1.19
 
159
date: 2001/08/22 17:44:27;  author: beck;  state: Exp;  lines: +2 -1
 
160
ftp-proxy
 
161
----------------------------
91
162
revision 1.18
92
163
date: 2001/01/29 11:38:32;  author: deraadt;  state: Exp;  lines: +2 -2
93
164
max actually defaults to 256, not 40
 
165
----------------------------
 
166
revision 1.17
 
167
date: 2000/10/23 14:44:09;  author: aaron;  state: Exp;  lines: +2 -3
 
168
Use the standard option descriptions introduction.
 
169
----------------------------
 
170
revision 1.16
 
171
date: 2000/06/14 16:06:07;  author: itojun;  state: Exp;  lines: +9 -77
 
172
clarify tcp4/tcp6 interaction.
 
173
----------------------------
 
174
revision 1.15
 
175
date: 2000/04/15 02:15:18;  author: aaron;  state: Exp;  lines: +2 -2
 
176
Mostly punctuation fixes.
 
177
----------------------------
 
178
revision 1.14
 
179
date: 2000/04/12 21:47:53;  author: aaron;  state: Exp;  lines: +3 -3
 
180
Trailing whitespace begone!
 
181
----------------------------
 
182
revision 1.13
 
183
date: 2000/03/19 17:57:05;  author: aaron;  state: Exp;  lines: +51 -31
 
184
Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some other
 
185
cleanup along the way.
 
186
----------------------------
 
187
revision 1.12
 
188
date: 1999/12/08 13:21:17;  author: itojun;  state: Exp;  lines: +119 -1
 
189
IPv6/v4 inetd(8) from KAME.  now you can test ftp over IPv6.
 
190
----------------------------
 
191
revision 1.11
 
192
date: 1999/09/23 04:12:10;  author: alex;  state: Exp;  lines: +2 -2
 
193
Typo fixes.
 
194
----------------------------
 
195
revision 1.10
 
196
date: 1999/06/05 22:17:01;  author: aaron;  state: Exp;  lines: +9 -9
 
197
remove trailing whitespace, some Nm cleanup
 
198
----------------------------
 
199
revision 1.9
 
200
date: 1999/05/23 14:11:33;  author: aaron;  state: Exp;  lines: +2 -2
 
201
remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
 
202
is used instead; kwesterback@home.com
 
203
----------------------------
 
204
revision 1.8
 
205
date: 1998/12/04 07:52:02;  author: deraadt;  state: Exp;  lines: +3 -3
 
206
support user.group or user:group, per chown(8)
 
207
----------------------------
 
208
revision 1.7
 
209
date: 1998/11/08 00:21:30;  author: aaron;  state: Exp;  lines: +21 -22
 
210
usr.sbin/ man page repairs, a-i
 
211
----------------------------
 
212
revision 1.6
 
213
date: 1997/11/14 03:46:00;  author: deraadt;  state: Exp;  lines: +5 -1
 
214
clone freebsd "-R rate"; default to 256 invocations/minute
 
215
----------------------------
 
216
revision 1.5
 
217
date: 1997/06/26 06:27:27;  author: denny;  state: Exp;  lines: +10 -3
 
218
Document inetd's allowing mutliple comma-separated hostnames in inetd.conf.
 
219
----------------------------
 
220
revision 1.4
 
221
date: 1997/06/18 03:01:42;  author: denny;  state: Exp;  lines: +32 -2
 
222
Document inetd.conf's per-interface binding (new verbage from der Mouse's netbsd mods).
 
223
----------------------------
 
224
revision 1.3
 
225
date: 1997/05/30 07:56:08;  author: deraadt;  state: Exp;  lines: +21 -7
 
226
wait wrks on tcp; rickb@iaw.on.ca
 
227
----------------------------
 
228
revision 1.2
 
229
date: 1997/01/13 20:45:28;  author: deraadt;  state: Exp;  lines: +2 -2
 
230
correct; kleink@layla.inka.de
 
231
----------------------------
 
232
revision 1.1
 
233
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;
 
234
branches:  1.1.1;
 
235
Initial revision
 
236
----------------------------
 
237
revision 1.1.1.1
 
238
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;  lines: +0 -0
 
239
initial import of NetBSD tree
94
240
=============================================================================
95
241
 
96
242
RCS file: /cvs/src/usr.sbin/inetd/inetd.c,v
97
243
Working file: inetd.c
98
 
head: 1.106
 
244
head: 1.122
99
245
branch:
100
246
locks: strict
101
247
access list:
102
248
symbolic names:
 
249
        OPENBSD_3_6: 1.120.0.2
 
250
        OPENBSD_3_6_BASE: 1.120
 
251
        OPENBSD_3_5: 1.115.0.2
 
252
        OPENBSD_3_5_BASE: 1.115
 
253
        OPENBSD_3_4: 1.111.0.2
 
254
        OPENBSD_3_4_BASE: 1.111
 
255
        OPENBSD_3_3: 1.108.0.2
 
256
        OPENBSD_3_3_BASE: 1.108
 
257
        OPENBSD_3_2: 1.107.0.2
 
258
        OPENBSD_3_2_BASE: 1.107
103
259
        OPENBSD_3_1: 1.89.0.2
104
260
        OPENBSD_3_1_BASE: 1.89
105
261
        OPENBSD_3_0: 1.85.0.2
126
282
        OPENBSD_2_0_BASE: 1.21
127
283
        netbsd_1_1: 1.1.1.1
128
284
keyword substitution: kv
129
 
total revisions: 108;   selected revisions: 2
 
285
total revisions: 124;   selected revisions: 124
130
286
description:
131
287
----------------------------
 
288
revision 1.122
 
289
date: 2004/09/15 08:46:00;  author: otto;  state: Exp;  lines: +5 -5
 
290
if (signalflag) { dowork(); signalflag = 0; } is a race. First clear flag,
 
291
then call work(). ok deraadt@
 
292
----------------------------
 
293
revision 1.121
 
294
date: 2004/09/14 22:28:41;  author: deraadt;  state: Exp;  lines: +7 -4
 
295
remove gcc specific extensions, and ARGSUSED where useful
 
296
----------------------------
 
297
revision 1.120
 
298
date: 2004/09/06 07:03:08;  author: otto;  state: Exp;  lines: +9 -5
 
299
Reset signal mask in the rate limiting case; check for interrupted
 
300
waits. Fixes zombies getting reaped late and other ignored signals.
 
301
Reported by mpech@; fix by millert@ with help from me. Commit requested
 
302
by deraadt@. ok mpech@
 
303
----------------------------
 
304
revision 1.119
 
305
date: 2004/07/28 13:08:19;  author: millert;  state: Exp;  lines: +8 -2
 
306
Should set user and group on unix domain sockets as reported by Juan Vera.
 
307
----------------------------
 
308
revision 1.118
 
309
date: 2004/06/30 07:58:12;  author: otto;  state: Exp;  lines: +18 -19
 
310
Unbreak unix domain sockets and properly detect and report truncation
 
311
of the socket path name. Based on a diff from Juan Vera, with changes
 
312
by me and millert@.  ok millert@ djm@; man page ok jmc@
 
313
----------------------------
 
314
revision 1.117
 
315
date: 2004/04/24 21:40:35;  author: millert;  state: Exp;  lines: +81 -126
 
316
Don't return NULL in getconfigent() when an unresolvable hostname
 
317
or unsupported address family is specified.  This simplifies the
 
318
hostname/address lookup loops and gets rid of the skip label.
 
319
Found by mpech@.  OK deraadt@ and otto@
 
320
----------------------------
 
321
revision 1.116
 
322
date: 2004/03/31 19:12:22;  author: millert;  state: Exp;  lines: +10 -3
 
323
For non-internal services, if no program arguments are specified use
 
324
the program's basename as argv[0].  Problem found by mpech@.
 
325
OK deraadt@ beck@
 
326
----------------------------
 
327
revision 1.115
 
328
date: 2004/01/06 19:45:54;  author: millert;  state: Exp;  lines: +6 -5
 
329
Fix signal handling when there is an error in inetd.conf.  Found by
 
330
mpech@.  OK mpech@ and deraadt@
 
331
----------------------------
 
332
revision 1.114
 
333
date: 2003/12/23 15:24:28;  author: mpech;  state: Exp;  lines: +9 -9
 
334
Remove unnecessary casts (char *).
 
335
 
 
336
millert@ ok.
 
337
----------------------------
 
338
revision 1.113
 
339
date: 2003/10/24 20:30:02;  author: avsm;  state: Exp;  lines: +3 -3
 
340
dont compare int to NULL, millert@ ok
 
341
----------------------------
 
342
revision 1.112
 
343
date: 2003/10/03 22:43:37;  author: deraadt;  state: Exp;  lines: +6 -5
 
344
exit if no config file; jeffi@rcn.com
 
345
----------------------------
 
346
revision 1.111
 
347
date: 2003/06/26 19:47:08;  author: deraadt;  state: Exp;  lines: +4 -4
 
348
strict proto cleanups
 
349
----------------------------
 
350
revision 1.110
 
351
date: 2003/06/02 23:36:53;  author: millert;  state: Exp;  lines: +3 -7
 
352
Remove the advertising clause in the UCB license which Berkeley
 
353
rescinded 22 July 1999.  Proofed by myself and Theo.
 
354
----------------------------
 
355
revision 1.109
 
356
date: 2003/04/28 02:58:45;  author: itojun;  state: Exp;  lines: +3 -3
 
357
advocate posix ":" for user:group.  deraadt ok
 
358
----------------------------
 
359
revision 1.108
 
360
date: 2002/11/11 23:46:29;  author: millert;  state: Exp;  lines: +4 -4
 
361
Pass gcc -ansi -pedantic; Chad Loder
 
362
----------------------------
 
363
revision 1.107
 
364
date: 2002/09/06 19:46:52;  author: deraadt;  state: Exp;  lines: +7 -5
 
365
use more socklen_t; pvalchev
 
366
----------------------------
132
367
revision 1.106
133
368
date: 2002/07/20 18:01:18;  author: deraadt;  state: Exp;  lines: +5 -3
134
369
abort on setusercontext failure; millert ok
135
370
----------------------------
 
371
revision 1.105
 
372
date: 2002/07/15 23:05:17;  author: deraadt;  state: Exp;  lines: +5 -4
 
373
minor tweaks
 
374
----------------------------
 
375
revision 1.104
 
376
date: 2002/07/15 22:26:31;  author: deraadt;  state: Exp;  lines: +39 -79
 
377
ansi
 
378
----------------------------
 
379
revision 1.103
 
380
date: 2002/07/04 12:36:56;  author: itojun;  state: Exp;  lines: +3 -3
 
381
correct udp-from-broadcast check.  from <andre@ae-35.com>
 
382
----------------------------
 
383
revision 1.102
 
384
date: 2002/06/28 22:41:10;  author: deraadt;  state: Exp;  lines: +6 -5
 
385
minor KNF
 
386
----------------------------
 
387
revision 1.101
 
388
date: 2002/06/21 07:30:09;  author: deraadt;  state: Exp;  lines: +4 -4
 
389
kill gratuitous hex; millert ok
 
390
----------------------------
 
391
revision 1.100
 
392
date: 2002/06/21 06:20:28;  author: millert;  state: Exp;  lines: +22 -35
 
393
o change some 0-2 to *_FILENO
 
394
o don't #ifdef RLIMIT_NOFILE
 
395
o dup2() safety
 
396
o some NULL vs. 0 changes
 
397
 
 
398
deraadt@ OK
 
399
----------------------------
 
400
revision 1.99
 
401
date: 2002/06/07 07:37:41;  author: itojun;  state: Exp;  lines: +29 -4
 
402
do not respond to udp service if ip_src matches broadcast addr.  theo ok
 
403
----------------------------
 
404
revision 1.98
 
405
date: 2002/06/01 03:42:06;  author: itojun;  state: Exp;  lines: +6 -6
 
406
machtime() is 32bit quantity.
 
407
----------------------------
 
408
revision 1.97
 
409
date: 2002/06/01 01:57:44;  author: deraadt;  state: Exp;  lines: +15 -30
 
410
i find more: a stderr print that makes no sense, and a part that was
 
411
used by the fake setproctitle.  itojun -- your turn.
 
412
----------------------------
 
413
revision 1.96
 
414
date: 2002/05/31 23:48:41;  author: itojun;  state: Exp;  lines: +5 -5
 
415
cleanup socklen_t
 
416
----------------------------
 
417
revision 1.95
 
418
date: 2002/05/31 22:20:18;  author: deraadt;  state: Exp;  lines: +257 -233
 
419
split out two major function blocks which made the indentation horrible
 
420
----------------------------
 
421
revision 1.94
 
422
date: 2002/05/31 20:20:53;  author: itojun;  state: Exp;  lines: +28 -37
 
423
use setproctitle(3).  check for IPv6 ftp bounce attack.  deraadt ok
 
424
----------------------------
 
425
revision 1.93
 
426
date: 2002/05/30 19:09:05;  author: deraadt;  state: Exp;  lines: +28 -28
 
427
minor KNF
 
428
----------------------------
 
429
revision 1.92
 
430
date: 2002/05/29 19:23:34;  author: deraadt;  state: Exp;  lines: +5 -5
 
431
more strlcat
 
432
----------------------------
 
433
revision 1.91
 
434
date: 2002/05/26 09:25:21;  author: deraadt;  state: Exp;  lines: +9 -8
 
435
pid_t cleanup
 
436
----------------------------
 
437
revision 1.90
 
438
date: 2002/05/22 09:09:32;  author: deraadt;  state: Exp;  lines: +4 -4
 
439
more strcpy/sprintf death; mpech ok
 
440
----------------------------
 
441
revision 1.89
 
442
date: 2002/03/14 16:44:25;  author: mpech;  state: Exp;  lines: +19 -19
 
443
kill more registers.
 
444
 
 
445
millert@ ok
 
446
----------------------------
 
447
revision 1.88
 
448
date: 2002/02/16 21:28:03;  author: millert;  state: Exp;  lines: +37 -37
 
449
Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.
 
450
----------------------------
 
451
revision 1.87
 
452
date: 2002/02/10 01:19:02;  author: millert;  state: Exp;  lines: +3 -3
 
453
Fix SIGTERM handling; deraadt@ ok
 
454
----------------------------
 
455
revision 1.86
 
456
date: 2001/11/05 09:43:50;  author: deraadt;  state: Exp;  lines: +26 -17
 
457
remove last signal race
 
458
----------------------------
 
459
revision 1.85
 
460
date: 2001/09/04 23:35:59;  author: millert;  state: Exp;  lines: +34 -27
 
461
Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.
 
462
----------------------------
 
463
revision 1.84
 
464
date: 2001/09/03 21:22:38;  author: pjanzen;  state: Exp;  lines: +3 -4
 
465
doreap() needn't preserve errno, since it's not a signal handler.
 
466
----------------------------
 
467
revision 1.83
 
468
date: 2001/07/04 06:46:58;  author: deraadt;  state: Exp;  lines: +4 -8
 
469
cleanup; itojun & jasoni
 
470
----------------------------
 
471
revision 1.82
 
472
date: 2001/03/15 18:28:41;  author: danh;  state: Exp;  lines: +6 -3
 
473
branches:  1.82.2;
 
474
break out of loop if a flag is set; ok deraadt@
 
475
----------------------------
 
476
revision 1.81
 
477
date: 2001/03/15 18:07:57;  author: deraadt;  state: Exp;  lines: +14 -14
 
478
spin even cheaper
 
479
----------------------------
 
480
revision 1.80
 
481
date: 2001/03/15 17:53:09;  author: deraadt;  state: Exp;  lines: +15 -15
 
482
check all flags before looping
 
483
----------------------------
 
484
revision 1.79
 
485
date: 2001/01/30 08:30:57;  author: deraadt;  state: Exp;  lines: +10 -3
 
486
check for invalid [.max] fields
 
487
----------------------------
 
488
revision 1.78
 
489
date: 2001/01/29 21:08:11;  author: deraadt;  state: Exp;  lines: +4 -3
 
490
mark signal races
 
491
----------------------------
 
492
revision 1.77
 
493
date: 2001/01/29 21:07:36;  author: deraadt;  state: Exp;  lines: +7 -7
 
494
do not _exit() in fork()'d child
 
495
----------------------------
 
496
revision 1.76
 
497
date: 2001/01/29 21:06:43;  author: deraadt;  state: Exp;  lines: +7 -7
 
498
do not exit(-1)
 
499
----------------------------
 
500
revision 1.75
 
501
date: 2001/01/29 11:23:28;  author: deraadt;  state: Exp;  lines: +3 -3
 
502
use _exit() in signal handler
 
503
----------------------------
 
504
revision 1.74
 
505
date: 2001/01/17 19:30:03;  author: deraadt;  state: Exp;  lines: +5 -5
 
506
use sig_atomic_t
 
507
----------------------------
 
508
revision 1.73
 
509
date: 2001/01/16 23:57:37;  author: deraadt;  state: Exp;  lines: +18 -14
 
510
check flags every loop, not just on EINTR
 
511
----------------------------
 
512
revision 1.72
 
513
date: 2001/01/12 16:34:03;  author: deraadt;  state: Exp;  lines: +96 -24
 
514
un-race three signal handlers, and fix the fd_set overflow gunk
 
515
----------------------------
 
516
revision 1.71
 
517
date: 2000/11/21 07:23:24;  author: deraadt;  state: Exp;  lines: +2 -264
 
518
bye bye MULOG.  code that is easy to read, is code that is easy to audit
 
519
----------------------------
 
520
revision 1.70
 
521
date: 2000/11/09 02:55:42;  author: deraadt;  state: Exp;  lines: +3 -3
 
522
typo
 
523
----------------------------
 
524
revision 1.69
 
525
date: 2000/08/22 14:47:54;  author: millert;  state: Exp;  lines: +4 -4
 
526
If a user is specified in inetd.conf, set the LOGIN_SETGROUP flag too
 
527
since setting user implies setting default groups for that user.
 
528
Porblem noted by sigh@kuzirabekon.econ.nagasaki-u.ac.jp.
 
529
----------------------------
 
530
revision 1.68
 
531
date: 2000/08/20 18:42:42;  author: millert;  state: Exp;  lines: +17 -21
 
532
Add calls to setusercontext() and login_get*().  We basically call
 
533
setusercontext() in most places where previously we did a setlogin().
 
534
Add default login.conf file and put root in the "daemon" login class.
 
535
----------------------------
 
536
revision 1.67
 
537
date: 2000/08/03 11:33:37;  author: itojun;  state: Exp;  lines: +9 -3
 
538
udp source validation: drop v4 mapped altogether.
 
539
----------------------------
 
540
revision 1.66
 
541
date: 2000/08/01 19:05:23;  author: itojun;  state: Exp;  lines: +3 -5
 
542
unused variable
 
543
----------------------------
 
544
revision 1.65
 
545
date: 2000/08/01 19:02:05;  author: itojun;  state: Exp;  lines: +47 -11
 
546
be more paranoid about UDP-based echo services validation.  namely,
 
547
reject the following sources:
 
548
        0.0.0.0/8 127.0.0.0/8 240.0.0.0/4 255.0.0.0/8
 
549
        ff00::/8 ::/128
 
550
        ::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule.
 
551
        reserved port, or NFS port.
 
552
hint from deraadt.
 
553
----------------------------
 
554
revision 1.64
 
555
date: 2000/08/01 18:52:50;  author: itojun;  state: Exp;  lines: +36 -27
 
556
for datagram services, support IPv6.
 
557
----------------------------
 
558
revision 1.63
 
559
date: 2000/07/08 01:57:27;  author: itojun;  state: Exp;  lines: +73 -49
 
560
handle IPv6 address in first element.
 
561
permit square bracket notation in first element of inetd.conf, like RFC2732.
 
562
otherwise colon is slightly ambiguous.  sync with kame.
 
563
 
 
564
[::1]:ftp  stream  tcp6  nowait  root  /usr/libexec/ftpd  ftpd -US -h
 
565
----------------------------
 
566
revision 1.62
 
567
date: 2000/06/19 01:28:45;  author: itojun;  state: Exp;  lines: +6 -2
 
568
honor scopeid when compare ipv6 addrs
 
569
----------------------------
 
570
revision 1.61
 
571
date: 2000/03/04 01:10:06;  author: deraadt;  state: Exp;  lines: +56 -33
 
572
handle corrupt inetd.conf files better; sdb@ssr.com
 
573
----------------------------
 
574
revision 1.60
 
575
date: 2000/02/01 03:23:58;  author: deraadt;  state: Exp;  lines: +2 -3
 
576
no need to extern int errno if errno.h is included
 
577
----------------------------
 
578
revision 1.59
 
579
date: 1999/12/10 16:19:29;  author: deraadt;  state: Exp;  lines: +12 -16
 
580
indent
 
581
----------------------------
 
582
revision 1.58
 
583
date: 1999/12/10 10:28:40;  author: deraadt;  state: Exp;  lines: +9 -8
 
584
repair various bugs in -d mode
 
585
----------------------------
 
586
revision 1.57
 
587
date: 1999/12/08 13:21:17;  author: itojun;  state: Exp;  lines: +80 -4
 
588
IPv6/v4 inetd(8) from KAME.  now you can test ftp over IPv6.
 
589
----------------------------
 
590
revision 1.56
 
591
date: 1999/02/24 12:31:30;  author: deraadt;  state: Exp;  lines: +3 -3
 
592
fix -R option; hugh
 
593
----------------------------
 
594
revision 1.55
 
595
date: 1999/01/04 12:03:08;  author: niklas;  state: Exp;  lines: +3 -3
 
596
PIDs does not always fit in short
 
597
----------------------------
 
598
revision 1.54
 
599
date: 1998/12/04 07:52:02;  author: deraadt;  state: Exp;  lines: +8 -6
 
600
support user.group or user:group, per chown(8)
 
601
----------------------------
 
602
revision 1.53
 
603
date: 1998/11/21 00:15:58;  author: deraadt;  state: Exp;  lines: +3 -3
 
604
missing \n
 
605
----------------------------
 
606
revision 1.52
 
607
date: 1998/11/19 06:34:03;  author: deraadt;  state: Exp;  lines: +5 -4
 
608
catch extra junk at the end of the numbers
 
609
----------------------------
 
610
revision 1.51
 
611
date: 1998/11/18 23:25:35;  author: deraadt;  state: Exp;  lines: +11 -7
 
612
correct strtol() mess around rpc version numbers
 
613
----------------------------
 
614
revision 1.50
 
615
date: 1998/10/28 18:01:17;  author: deraadt;  state: Exp;  lines: +3 -3
 
616
fix ? usage handling; route@resentment.infonexus.com
 
617
----------------------------
 
618
revision 1.49
 
619
date: 1998/07/15 17:51:14;  author: deraadt;  state: Exp;  lines: +6 -3
 
620
close fd leak; jeff@FORYS.CRANBURY.NJ.US
 
621
----------------------------
 
622
revision 1.48
 
623
date: 1998/07/13 02:11:48;  author: millert;  state: Exp;  lines: +3 -3
 
624
ftpd: sleep for an indeterminate amount for non-existant logins
 
625
      to simulate a crypt, like login does.
 
626
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
 
627
----------------------------
 
628
revision 1.47
 
629
date: 1998/06/03 08:06:01;  author: deraadt;  state: Exp;  lines: +7 -4
 
630
use sigsetops, and do cross-block signal handlers
 
631
----------------------------
 
632
revision 1.46
 
633
date: 1998/03/12 00:19:16;  author: deraadt;  state: Exp;  lines: +18 -17
 
634
unblock SIGPIPE before execv(); chuck.
 
635
convert to sigaction(); deraadt.
 
636
----------------------------
 
637
revision 1.45
 
638
date: 1998/02/24 20:21:32;  author: deraadt;  state: Exp;  lines: +6 -3
 
639
udp time may be contacted at dynamic reserved
 
640
----------------------------
 
641
revision 1.44
 
642
date: 1997/12/23 23:46:16;  author: deraadt;  state: Exp;  lines: +4 -3
 
643
make it more obvious why pmap_set syslogs happen
 
644
----------------------------
 
645
revision 1.43
 
646
date: 1997/12/04 21:35:29;  author: art;  state: Exp;  lines: +5 -4
 
647
Fixed a sysadmin-dos.
 
648
----------------------------
 
649
revision 1.42
 
650
date: 1997/11/14 03:46:00;  author: deraadt;  state: Exp;  lines: +22 -6
 
651
clone freebsd "-R rate"; default to 256 invocations/minute
 
652
----------------------------
 
653
revision 1.41
 
654
date: 1997/11/14 03:40:02;  author: deraadt;  state: Exp;  lines: +3 -3
 
655
crank TOOMANY to 160 for now
 
656
----------------------------
 
657
revision 1.40
 
658
date: 1997/09/19 12:21:27;  author: deraadt;  state: Exp;  lines: +4 -2
 
659
ignore SIGPIPE; not nearly as much of a problem as linux though
 
660
----------------------------
 
661
revision 1.39
 
662
date: 1997/08/31 18:04:37;  author: deraadt;  state: Exp;  lines: +38 -20
 
663
only check for ftp bounce in tcp, duh. for nonreserved ports, do not
 
664
close for looping mode. kill an fd leak.
 
665
----------------------------
 
666
revision 1.38
 
667
date: 1997/08/29 17:07:04;  author: deraadt;  state: Exp;  lines: +5 -4
 
668
very weird sleep; dholland@eecs.harvard.edu
 
669
----------------------------
 
670
revision 1.37
 
671
date: 1997/08/04 19:26:10;  author: deraadt;  state: Exp;  lines: +4 -2
 
672
save errno in sigchld handlers
 
673
----------------------------
 
674
revision 1.36
 
675
date: 1997/07/22 21:12:28;  author: deraadt;  state: Exp;  lines: +32 -33
 
676
cleanup
 
677
----------------------------
 
678
revision 1.35
 
679
date: 1997/07/08 20:37:30;  author: kstailey;  state: Exp;  lines: +3 -3
 
680
print child exit status in debug mode.
 
681
----------------------------
 
682
revision 1.34
 
683
date: 1997/07/08 20:31:14;  author: kstailey;  state: Exp;  lines: +20 -23
 
684
NULL
 
685
----------------------------
 
686
revision 1.33
 
687
date: 1997/06/26 17:31:22;  author: deraadt;  state: Exp;  lines: +17 -17
 
688
mem* cleanup
 
689
----------------------------
 
690
revision 1.32
 
691
date: 1997/06/26 06:26:15;  author: denny;  state: Exp;  lines: +233 -71
 
692
Better support for specific instance binding in inetd:
 
693
- Allow comma delimited list of hostnames, create a socket for each
 
694
- Allow a hostname which resolves to multiple addrs, create a socket for each
 
695
- Make sure kill -HUP handles specific instance services correctly.
 
696
----------------------------
 
697
revision 1.31
 
698
date: 1997/06/23 09:37:37;  author: deraadt;  state: Exp;  lines: +6 -6
 
699
return 32-bits worth of time for time service
 
700
----------------------------
 
701
revision 1.30
 
702
date: 1997/06/23 09:35:04;  author: deraadt;  state: Exp;  lines: +4 -4
 
703
sigblock plays with ints
 
704
----------------------------
 
705
revision 1.29
 
706
date: 1997/06/17 05:41:19;  author: deraadt;  state: Exp;  lines: +2 -8
 
707
do not test for a bug which does not exist
 
708
----------------------------
 
709
revision 1.28
 
710
date: 1997/06/17 05:26:22;  author: denny;  state: Exp;  lines: +114 -5
 
711
Add per-interface binding, based on der Mouse's code in netbsd.
 
712
----------------------------
 
713
revision 1.27
 
714
date: 1997/06/04 11:07:05;  author: deraadt;  state: Exp;  lines: +6 -6
 
715
toast extra \n; ficus
 
716
----------------------------
 
717
revision 1.26
 
718
date: 1997/06/04 11:03:15;  author: deraadt;  state: Exp;  lines: +3 -2
 
719
do not exceed bounds of fd_set
 
720
----------------------------
 
721
revision 1.25
 
722
date: 1997/02/24 12:48:06;  author: deraadt;  state: Exp;  lines: +3 -6
 
723
irc thing is dumb, and do not bother wasting effort screaming about ftp bounce attempts, just slaughter them
 
724
----------------------------
 
725
revision 1.24
 
726
date: 1997/01/15 23:43:59;  author: millert;  state: Exp;  lines: +3 -3
 
727
getopt(3) returns -1 when out of args, not EOF, whee!
 
728
----------------------------
 
729
revision 1.23
 
730
date: 1996/12/14 19:19:09;  author: deraadt;  state: Exp;  lines: +12 -3
 
731
be more careful with setgroups()
 
732
----------------------------
 
733
revision 1.22
 
734
date: 1996/12/11 09:05:05;  author: deraadt;  state: Exp;  lines: +21 -19
 
735
proto & column cleanup
 
736
----------------------------
 
737
revision 1.21
 
738
date: 1996/08/31 17:31:05;  author: deraadt;  state: Exp;  lines: +3 -17
 
739
rpc is not an option anymore
 
740
----------------------------
 
741
revision 1.20
 
742
date: 1996/08/28 09:55:00;  author: deraadt;  state: Exp;  lines: +29 -13
 
743
closer towards useable by generic joe
 
744
----------------------------
 
745
revision 1.19
 
746
date: 1996/08/16 08:32:54;  author: deraadt;  state: Exp;  lines: +3 -3
 
747
do not do bindresvport if user runs own inetd
 
748
----------------------------
 
749
revision 1.18
 
750
date: 1996/08/11 23:24:25;  author: deraadt;  state: Exp;  lines: +10 -10
 
751
fix doc order of setgid/initgroups/setuid
 
752
----------------------------
 
753
revision 1.17
 
754
date: 1996/08/02 07:18:35;  author: deraadt;  state: Exp;  lines: +14 -7
 
755
merge freebsd setlogin/setsid changes
 
756
----------------------------
 
757
revision 1.16
 
758
date: 1996/08/02 06:47:41;  author: deraadt;  state: Exp;  lines: +6 -6
 
759
indent
 
760
----------------------------
 
761
revision 1.15
 
762
date: 1996/08/02 06:13:26;  author: deraadt;  state: Exp;  lines: +14 -3
 
763
after rpc bind, getpeername() to update sin_port
 
764
----------------------------
 
765
revision 1.14
 
766
date: 1996/07/31 11:01:54;  author: deraadt;  state: Exp;  lines: +18 -14
 
767
proto throughout
 
768
----------------------------
 
769
revision 1.13
 
770
date: 1996/07/29 23:45:34;  author: deraadt;  state: Exp;  lines: +5 -2
 
771
udp spam on 6667
 
772
----------------------------
 
773
revision 1.12
 
774
date: 1996/07/29 09:14:55;  author: deraadt;  state: Exp;  lines: +19 -0
 
775
careful of bad addr/port in dgram services
 
776
----------------------------
 
777
revision 1.11
 
778
date: 1996/07/29 09:13:31;  author: deraadt;  state: Exp;  lines: +82 -43
 
779
-Wall clean; careful buffer usage
 
780
----------------------------
 
781
revision 1.10
 
782
date: 1996/07/29 07:53:07;  author: downsj;  state: Exp;  lines: +6 -2
 
783
Zero out the port for RPC services; let bind() find one.
 
784
----------------------------
 
785
revision 1.9
 
786
date: 1996/07/29 03:43:54;  author: deraadt;  state: Exp;  lines: +4 -2
 
787
from port 20, do not leak an fd
 
788
----------------------------
 
789
revision 1.8
 
790
date: 1996/07/28 05:54:41;  author: deraadt;  state: Exp;  lines: +8 -7
 
791
arthur (in)dent
 
792
----------------------------
 
793
revision 1.7
 
794
date: 1996/07/28 05:13:19;  author: joshd;  state: Exp;  lines: +14 -3
 
795
Do not allow hosts to connect to servers from
 
796
source ports < IPPORT_RESERVED/2.  This is for ftp bounce attacks,
 
797
----------------------------
 
798
revision 1.6
 
799
date: 1996/06/29 01:02:24;  author: deraadt;  state: Exp;  lines: +3 -4
 
800
bindresvport() called incorrectly; we need a proto somewhere guys
 
801
----------------------------
 
802
revision 1.5
 
803
date: 1996/06/28 17:50:09;  author: deraadt;  state: Exp;  lines: +3 -2
 
804
closelog() before we trash the syslog descriptor; suggestion from alan@parsys.co.uk
 
805
----------------------------
 
806
revision 1.4
 
807
date: 1996/06/12 07:23:26;  author: deraadt;  state: Exp;  lines: +17 -6
 
808
use resv port only for root processes
 
809
----------------------------
 
810
revision 1.3
 
811
date: 1996/05/13 16:00:08;  author: deraadt;  state: Exp;  lines: +7 -1
 
812
bindresvport() for rpc ports
 
813
----------------------------
 
814
revision 1.2
 
815
date: 1996/03/25 15:55:24;  author: niklas;  state: Exp;  lines: +7 -10
 
816
From NetBSD: merge of 960317
 
817
----------------------------
 
818
revision 1.1
 
819
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;
 
820
branches:  1.1.1;
 
821
Initial revision
 
822
----------------------------
 
823
revision 1.1.1.1
 
824
date: 1995/10/18 08:47:36;  author: deraadt;  state: Exp;  lines: +0 -0
 
825
initial import of NetBSD tree
 
826
----------------------------
136
827
revision 1.82.2.1
137
828
date: 2001/07/17 04:13:48;  author: jason;  state: Exp;  lines: +4 -8
138
829
Pull in patch from current:
142
833
 
143
834
RCS file: /cvs/src/usr.sbin/inetd/pathnames.h,v
144
835
Working file: pathnames.h
145
 
head: 1.1
146
 
branch: 1.1.1
 
836
head: 1.2
 
837
branch:
147
838
locks: strict
148
839
access list:
149
840
symbolic names:
 
841
        OPENBSD_3_6: 1.2.0.6
 
842
        OPENBSD_3_6_BASE: 1.2
 
843
        OPENBSD_3_5: 1.2.0.4
 
844
        OPENBSD_3_5_BASE: 1.2
 
845
        OPENBSD_3_4: 1.2.0.2
 
846
        OPENBSD_3_4_BASE: 1.2
 
847
        OPENBSD_3_3: 1.1.1.1.0.28
 
848
        OPENBSD_3_3_BASE: 1.1.1.1
 
849
        OPENBSD_3_2: 1.1.1.1.0.26
 
850
        OPENBSD_3_2_BASE: 1.1.1.1
150
851
        OPENBSD_3_1: 1.1.1.1.0.24
151
852
        OPENBSD_3_1_BASE: 1.1.1.1
152
853
        OPENBSD_3_0: 1.1.1.1.0.22
173
874
        OPENBSD_2_0_BASE: 1.1.1.1
174
875
        netbsd_1_1: 1.1.1.1
175
876
keyword substitution: kv
176
 
total revisions: 2;     selected revisions: 2
 
877
total revisions: 3;     selected revisions: 3
177
878
description:
178
879
----------------------------
 
880
revision 1.2
 
881
date: 2003/06/02 23:36:53;  author: millert;  state: Exp;  lines: +2 -6
 
882
Remove the advertising clause in the UCB license which Berkeley
 
883
rescinded 22 July 1999.  Proofed by myself and Theo.
 
884
----------------------------
179
885
revision 1.1
180
886
date: 1995/10/18 08:47:37;  author: deraadt;  state: Exp;
181
887
branches:  1.1.1;