1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
2008-01-25 14:52 espie
* inetd.c: validate argv, okay otto@, henning@
2008-01-06 17:04 jmc
* inetd.8: remove out of date/irrelevant section of BUGS dealing
with ip6; ok deraadt
2008-01-06 14:49 jmc
* inetd.8: - document what happens when a service exceeds its max
spawn rate. this is based on a diff from reed@netbsd, but i chose
a different fix - whilst here, make the descriptions of -R and
.max more consistent
ok sthen sobrado(in part, at least)
2008-01-05 10:53 jmc
* inetd.c: sync usage() w/ SYNOPSIS;
2007-09-11 18:30 gilles
* inetd.c: use strcspn to properly overwrite '\n' in fgets returned
buffer
ok pyr@, ray@, millert@, moritz@, chl@
2007-05-31 21:20 jmc
* inetd.8: convert to new .Dd format;
2005-06-02 09:56 jmc
* inetd.8: fix some displays;
2005-06-02 09:51 jmc
* inetd.8: remove references to telnetd(8); ok deraadt@
2005-04-02 20:10 otto
* inetd.c: Create unix domain sockets with permissions 0666, so
clients can actually access it. If you want unix domain sockets
that are access restricted, create them in a dir with restrictive
permissions. PR 4141.
ok deraadt@
2004-09-15 10:46 otto
* inetd.c: if (signalflag) { dowork(); signalflag = 0; } is a race.
First clear flag, then call work(). ok deraadt@
2004-09-15 00:28 deraadt
* inetd.c: remove gcc specific extensions, and ARGSUSED where
useful
2004-09-06 09:03 otto
* inetd.c: Reset signal mask in the rate limiting case; check for
interrupted waits. Fixes zombies getting reaped late and other
ignored signals. Reported by mpech@; fix by millert@ with help
from me. Commit requested by deraadt@. ok mpech@
2004-07-28 15:08 millert
* inetd.c: Should set user and group on unix domain sockets as
reported by Juan Vera.
2004-06-30 09:58 otto
* inetd.8, inetd.c: Unbreak unix domain sockets and properly detect
and report truncation of the socket path name. Based on a diff
from Juan Vera, with changes by me and millert@. ok millert@
djm@; man page ok jmc@
2004-04-24 23:40 millert
* inetd.8, inetd.c: Don't return NULL in getconfigent() when an
unresolvable hostname or unsupported address family is specified.
This simplifies the hostname/address lookup loops and gets rid
of the skip label. Found by mpech@. OK deraadt@ and otto@
2004-03-31 21:12 millert
* inetd.c: For non-internal services, if no program arguments are
specified use the program's basename as argv[0]. Problem found
by mpech@. OK deraadt@ beck@
2004-01-06 20:45 millert
* inetd.c: Fix signal handling when there is an error in
inetd.conf. Found by mpech@. OK mpech@ and deraadt@
2003-12-23 16:24 mpech
* inetd.c: Remove unnecessary casts (char *).
millert@ ok.
2003-10-24 22:30 avsm
* inetd.c: dont compare int to NULL, millert@ ok
2003-10-04 00:43 deraadt
* inetd.c: exit if no config file; jeffi@rcn.com
2003-06-26 21:47 deraadt
* inetd.c: strict proto cleanups
2003-06-12 14:59 jmc
* inetd.8: - section reorder - macro fixes - kill whitespace at EOL
- new sentence, new line
2003-06-03 01:36 millert
* inetd.8, inetd.c, pathnames.h: Remove the advertising clause in
the UCB license which Berkeley rescinded 22 July 1999. Proofed
by myself and Theo.
2003-04-28 04:58 itojun
* inetd.c: advocate posix ":" for user:group. deraadt ok
2003-04-08 03:26 david
* inetd.8: identd has been nowait for 5 years now reported by Brad
Ely <elyb328@apk.net> ok tedu@
2003-02-03 18:46 jmc
* inetd.8: typos; ipsecadm(8): examples ho@ help and ok
markus@
2003-01-19 00:40 deraadt
* inetd.8: more typos; jmc@prioris.mini.pw.edu.pl
2002-11-12 00:46 millert
* inetd.c: Pass gcc -ansi -pedantic; Chad Loder
2002-09-06 21:46 deraadt
* inetd.c: use more socklen_t; pvalchev
2002-07-20 20:01 deraadt
* inetd.c: abort on setusercontext failure; millert ok
2002-07-16 01:05 deraadt
* inetd.c: minor tweaks
2002-07-16 00:26 deraadt
* inetd.c: ansi
2002-07-04 14:36 itojun
* inetd.c: correct udp-from-broadcast check. from
<andre@ae-35.com>
2002-06-29 00:41 deraadt
* inetd.c: minor KNF
2002-06-21 09:30 deraadt
* inetd.c: kill gratuitous hex; millert ok
2002-06-21 08:20 millert
* inetd.c: o change some 0-2 to *_FILENO o don't #ifdef
RLIMIT_NOFILE o dup2() safety o some NULL vs. 0 changes
deraadt@ OK
2002-06-07 09:37 itojun
* inetd.c: do not respond to udp service if ip_src matches
broadcast addr. theo ok
2002-06-01 05:42 itojun
* inetd.c: machtime() is 32bit quantity.
2002-06-01 03:57 deraadt
* inetd.c: i find more: a stderr print that makes no sense, and a
part that was used by the fake setproctitle. itojun -- your
turn.
2002-06-01 01:48 itojun
* inetd.c: cleanup socklen_t
2002-06-01 00:20 deraadt
* inetd.c: split out two major function blocks which made the
indentation horrible
2002-05-31 22:20 itojun
* inetd.c: use setproctitle(3). check for IPv6 ftp bounce attack.
deraadt ok
2002-05-30 21:09 deraadt
* inetd.c: minor KNF
2002-05-29 21:23 deraadt
* inetd.c: more strlcat
2002-05-26 11:25 deraadt
* inetd.c: pid_t cleanup
2002-05-22 11:09 deraadt
* inetd.c: more strcpy/sprintf death; mpech ok
2002-05-07 00:24 millert
* inetd.8: Kill rlogind and rexecd Xr's and add Xr's for things we
actually use.
2002-03-14 17:44 mpech
* inetd.c: kill more registers.
millert@ ok
2002-02-16 22:28 millert
* inetd.c: 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.
2002-02-10 02:19 millert
* inetd.c: Fix SIGTERM handling; deraadt@ ok
2001-11-05 10:43 deraadt
* inetd.c: remove last signal race
2001-09-05 01:35 millert
* inetd.c: Replace the deprecated BSD sigsetmask/sigblock/sigpause
functions with their POSIX counterparts.
2001-09-03 23:22 pjanzen
* inetd.c: doreap() needn't preserve errno, since it's not a signal
handler.
2001-08-22 19:44 beck
* inetd.8: ftp-proxy
2001-07-17 06:13 jason
* inetd.c: Pull in patch from current: Fix (deraadt): cleanup;
itojun & jasoni (adds checking of IPv6 udp source port)
2001-07-04 08:46 deraadt
* inetd.c: cleanup; itojun & jasoni
2001-03-15 19:28 danh
* inetd.c: break out of loop if a flag is set; ok deraadt@
2001-03-15 19:07 deraadt
* inetd.c: spin even cheaper
2001-03-15 18:53 deraadt
* inetd.c: check all flags before looping
2001-01-30 09:30 deraadt
* inetd.c: check for invalid [.max] fields
2001-01-29 22:08 deraadt
* inetd.c: mark signal races
2001-01-29 22:07 deraadt
* inetd.c: do not _exit() in fork()'d child
2001-01-29 22:06 deraadt
* inetd.c: do not exit(-1)
2001-01-29 12:38 deraadt
* inetd.8: max actually defaults to 256, not 40
2001-01-29 12:23 deraadt
* inetd.c: use _exit() in signal handler
2001-01-17 20:30 deraadt
* inetd.c: use sig_atomic_t
2001-01-17 00:57 deraadt
* inetd.c: check flags every loop, not just on EINTR
2001-01-12 17:34 deraadt
* inetd.c: un-race three signal handlers, and fix the fd_set
overflow gunk
2000-11-21 08:23 deraadt
* inetd.c: bye bye MULOG. code that is easy to read, is code that
is easy to audit
2000-11-09 03:55 deraadt
* inetd.c: typo
2000-10-23 16:44 aaron
* inetd.8: Use the standard option descriptions introduction.
2000-08-22 16:47 millert
* inetd.c: If a user is specified in inetd.conf, set the
LOGIN_SETGROUP flag too since setting user implies setting
default groups for that user. Porblem noted by
sigh@kuzirabekon.econ.nagasaki-u.ac.jp.
2000-08-20 20:42 millert
* inetd.c: Add calls to setusercontext() and login_get*(). We
basically call setusercontext() in most places where previously
we did a setlogin(). Add default login.conf file and put root in
the "daemon" login class.
2000-08-03 13:33 itojun
* inetd.c: udp source validation: drop v4 mapped altogether.
2000-08-01 21:05 itojun
* inetd.c: unused variable
2000-08-01 21:02 itojun
* inetd.c: be more paranoid about UDP-based echo services
validation. namely, reject the following sources: 0.0.0.0/8
127.0.0.0/8 240.0.0.0/4 255.0.0.0/8 ff00::/8 ::/128
::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule. reserved
port, or NFS port. hint from deraadt.
2000-08-01 20:52 itojun
* inetd.c: for datagram services, support IPv6.
2000-07-08 03:57 itojun
* inetd.c: handle IPv6 address in first element. permit square
bracket notation in first element of inetd.conf, like RFC2732.
otherwise colon is slightly ambiguous. sync with kame.
[::1]:ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd
-US -h
2000-06-19 03:28 itojun
* inetd.c: honor scopeid when compare ipv6 addrs
2000-06-14 18:06 itojun
* inetd.8: clarify tcp4/tcp6 interaction.
2000-04-15 04:15 aaron
* inetd.8: Mostly punctuation fixes.
2000-04-12 23:47 aaron
* inetd.8: Trailing whitespace begone!
2000-03-31 03:00 deraadt
* Makefile: install inetd.conf(5) here instead
2000-03-19 18:57 aaron
* inetd.8: Remove hard sentence breaks. Add $OpenBSD$ tags where
appropriate. Some other cleanup along the way.
2000-03-04 02:10 deraadt
* inetd.c: handle corrupt inetd.conf files better; sdb@ssr.com
2000-02-01 04:23 deraadt
* inetd.c: no need to extern int errno if errno.h is included
1999-12-10 17:19 deraadt
* inetd.c: indent
1999-12-10 11:28 deraadt
* inetd.c: repair various bugs in -d mode
1999-12-08 14:21 itojun
* inetd.8, inetd.c: IPv6/v4 inetd(8) from KAME. now you can test
ftp over IPv6.
1999-09-23 06:12 alex
* inetd.8: Typo fixes.
1999-06-06 00:17 aaron
* inetd.8: remove trailing whitespace, some Nm cleanup
1999-05-23 16:11 aaron
* inetd.8: remove argument from .Os macros so value in
/usr/share/tmac/mdoc/doc-common is used instead;
kwesterback@home.com
1999-02-24 13:31 deraadt
* inetd.c: fix -R option; hugh
1999-01-04 13:03 niklas
* inetd.c: PIDs does not always fit in short
1998-12-04 08:52 deraadt
* inetd.8, inetd.c: support user.group or user:group, per chown(8)
1998-11-21 01:15 deraadt
* inetd.c: missing \n
1998-11-19 07:34 deraadt
* inetd.c: catch extra junk at the end of the numbers
1998-11-19 00:25 deraadt
* inetd.c: correct strtol() mess around rpc version numbers
1998-11-08 01:21 aaron
* inetd.8: usr.sbin/ man page repairs, a-i
1998-10-28 19:01 deraadt
* inetd.c: fix ? usage handling; route@resentment.infonexus.com
1998-07-15 19:51 deraadt
* inetd.c: close fd leak; jeff@FORYS.CRANBURY.NJ.US
1998-07-13 04:11 millert
* inetd.c: ftpd: sleep for an indeterminate amount for non-existant
logins to simulate a crypt, like login does. Use SEEK_*
not L_* and kill some 0L's used in lseek while we're there.
1998-06-03 10:06 deraadt
* inetd.c: use sigsetops, and do cross-block signal handlers
1998-03-12 01:19 deraadt
* inetd.c: unblock SIGPIPE before execv(); chuck. convert to
sigaction(); deraadt.
1998-02-24 21:21 deraadt
* inetd.c: udp time may be contacted at dynamic reserved
1997-12-24 00:46 deraadt
* inetd.c: make it more obvious why pmap_set syslogs happen
1997-12-04 22:35 art
* inetd.c: Fixed a sysadmin-dos.
1997-11-14 04:46 deraadt
* inetd.8, inetd.c: clone freebsd "-R rate"; default to 256
invocations/minute
1997-11-14 04:40 deraadt
* inetd.c: crank TOOMANY to 160 for now
1997-09-21 13:43 deraadt
* Makefile: $OpenBSD$
1997-09-19 14:21 deraadt
* inetd.c: ignore SIGPIPE; not nearly as much of a problem as linux
though
1997-08-31 20:04 deraadt
* inetd.c: only check for ftp bounce in tcp, duh. for nonreserved
ports, do not close for looping mode. kill an fd leak.
1997-08-29 19:07 deraadt
* inetd.c: very weird sleep; dholland@eecs.harvard.edu
1997-08-04 21:26 deraadt
* inetd.c: save errno in sigchld handlers
1997-07-22 23:12 deraadt
* inetd.c: cleanup
1997-07-08 22:37 kstailey
* inetd.c: print child exit status in debug mode.
1997-07-08 22:31 kstailey
* inetd.c: NULL
1997-06-26 19:31 deraadt
* inetd.c: mem* cleanup
1997-06-26 08:27 denny
* inetd.8: Document inetd's allowing mutliple comma-separated
hostnames in inetd.conf.
1997-06-26 08:26 denny
* inetd.c: Better support for specific instance binding in inetd: -
Allow comma delimited list of hostnames, create a socket for each
- Allow a hostname which resolves to multiple addrs, create a
socket for each - Make sure kill -HUP handles specific instance
services correctly.
1997-06-23 11:37 deraadt
* inetd.c: return 32-bits worth of time for time service
1997-06-23 11:35 deraadt
* inetd.c: sigblock plays with ints
1997-06-18 05:01 denny
* inetd.8: Document inetd.conf's per-interface binding (new verbage
from der Mouse's netbsd mods).
1997-06-17 07:41 deraadt
* inetd.c: do not test for a bug which does not exist
1997-06-17 07:26 denny
* inetd.c: Add per-interface binding, based on der Mouse's code in
netbsd.
1997-06-04 13:07 deraadt
* inetd.c: toast extra \n; ficus
1997-06-04 13:03 deraadt
* inetd.c: do not exceed bounds of fd_set
1997-05-30 09:56 deraadt
* inetd.8: wait wrks on tcp; rickb@iaw.on.ca
1997-02-24 13:48 deraadt
* inetd.c: irc thing is dumb, and do not bother wasting effort
screaming about ftp bounce attempts, just slaughter them
1997-01-16 00:43 millert
* inetd.c: getopt(3) returns -1 when out of args, not EOF, whee!
1997-01-13 21:45 deraadt
* inetd.8: correct; kleink@layla.inka.de
1996-12-14 20:19 deraadt
* inetd.c: be more careful with setgroups()
1996-12-11 10:05 deraadt
* inetd.c: proto & column cleanup
1996-08-31 19:31 deraadt
* inetd.c: rpc is not an option anymore
1996-08-28 11:55 deraadt
* inetd.c: closer towards useable by generic joe
1996-08-16 10:32 deraadt
* inetd.c: do not do bindresvport if user runs own inetd
1996-08-12 01:24 deraadt
* inetd.c: fix doc order of setgid/initgroups/setuid
1996-08-02 09:18 deraadt
* inetd.c: merge freebsd setlogin/setsid changes
1996-08-02 08:47 deraadt
* inetd.c: indent
1996-08-02 08:13 deraadt
* inetd.c: after rpc bind, getpeername() to update sin_port
1996-07-31 13:01 deraadt
* inetd.c: proto throughout
1996-07-30 01:45 deraadt
* inetd.c: udp spam on 6667
1996-07-29 11:14 deraadt
* inetd.c: careful of bad addr/port in dgram services
1996-07-29 11:13 deraadt
* inetd.c: -Wall clean; careful buffer usage
1996-07-29 09:53 downsj
* inetd.c: Zero out the port for RPC services; let bind() find one.
1996-07-29 05:43 deraadt
* inetd.c: from port 20, do not leak an fd
1996-07-28 07:54 deraadt
* inetd.c: arthur (in)dent
1996-07-28 07:13 joshd
* inetd.c: Do not allow hosts to connect to servers from source
ports < IPPORT_RESERVED/2. This is for ftp bounce attacks,
1996-06-29 03:02 deraadt
* inetd.c: bindresvport() called incorrectly; we need a proto
somewhere guys
1996-06-28 19:50 deraadt
* inetd.c: closelog() before we trash the syslog descriptor;
suggestion from alan@parsys.co.uk
1996-06-12 09:23 deraadt
* inetd.c: use resv port only for root processes
1996-05-13 18:00 deraadt
* inetd.c: bindresvport() for rpc ports
1996-03-25 16:55 niklas
* inetd.c: From NetBSD: merge of 960317
1995-10-18 09:47 deraadt
* Makefile, inetd.8, inetd.c, pathnames.h: Initial revision
1995-10-18 09:47 deraadt
* Makefile, inetd.8, inetd.c, pathnames.h: initial import of NetBSD
tree
|