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 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907
|
RCS file: /cvs/src/usr.sbin/inetd/Makefile,v
Working file: Makefile
head: 1.3
branch:
locks: strict
access list:
symbolic names:
OPENBSD_3_7: 1.3.0.22
OPENBSD_3_7_BASE: 1.3
OPENBSD_3_6: 1.3.0.20
OPENBSD_3_6_BASE: 1.3
OPENBSD_3_5: 1.3.0.18
OPENBSD_3_5_BASE: 1.3
OPENBSD_3_4: 1.3.0.16
OPENBSD_3_4_BASE: 1.3
OPENBSD_3_3: 1.3.0.14
OPENBSD_3_3_BASE: 1.3
OPENBSD_3_2: 1.3.0.12
OPENBSD_3_2_BASE: 1.3
OPENBSD_3_1: 1.3.0.10
OPENBSD_3_1_BASE: 1.3
OPENBSD_3_0: 1.3.0.8
OPENBSD_3_0_BASE: 1.3
OPENBSD_2_9_BASE: 1.3
OPENBSD_2_9: 1.3.0.6
OPENBSD_2_8: 1.3.0.4
OPENBSD_2_8_BASE: 1.3
OPENBSD_2_7: 1.3.0.2
OPENBSD_2_7_BASE: 1.3
OPENBSD_2_6: 1.2.0.10
OPENBSD_2_6_BASE: 1.2
OPENBSD_2_5: 1.2.0.8
OPENBSD_2_5_BASE: 1.2
OPENBSD_2_4: 1.2.0.6
OPENBSD_2_4_BASE: 1.2
OPENBSD_2_3: 1.2.0.4
OPENBSD_2_3_BASE: 1.2
OPENBSD_2_2: 1.2.0.2
OPENBSD_2_2_BASE: 1.2
OPENBSD_2_1: 1.1.1.1.0.4
OPENBSD_2_1_BASE: 1.1.1.1
OPENBSD_2_0: 1.1.1.1.0.2
OPENBSD_2_0_BASE: 1.1.1.1
netbsd_1_1: 1.1.1.1
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
----------------------------
revision 1.3
date: 2000/03/31 01:00:49; author: deraadt; state: Exp; lines: +2 -2
install inetd.conf(5) here instead
----------------------------
revision 1.2
date: 1997/09/21 11:43:44; author: deraadt; state: Exp; lines: +1 -2
$OpenBSD$
----------------------------
revision 1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp; lines: +0 -0
initial import of NetBSD tree
=============================================================================
RCS file: /cvs/src/usr.sbin/inetd/inetd.8,v
Working file: inetd.8
head: 1.27
branch:
locks: strict
access list:
symbolic names:
OPENBSD_3_7: 1.27.0.4
OPENBSD_3_7_BASE: 1.27
OPENBSD_3_6: 1.27.0.2
OPENBSD_3_6_BASE: 1.27
OPENBSD_3_5: 1.25.0.4
OPENBSD_3_5_BASE: 1.25
OPENBSD_3_4: 1.25.0.2
OPENBSD_3_4_BASE: 1.25
OPENBSD_3_3: 1.22.0.2
OPENBSD_3_3_BASE: 1.22
OPENBSD_3_2: 1.20.0.2
OPENBSD_3_2_BASE: 1.20
OPENBSD_3_1: 1.19.0.4
OPENBSD_3_1_BASE: 1.19
OPENBSD_3_0: 1.19.0.2
OPENBSD_3_0_BASE: 1.19
OPENBSD_2_9_BASE: 1.18
OPENBSD_2_9: 1.18.0.2
OPENBSD_2_8: 1.17.0.2
OPENBSD_2_8_BASE: 1.17
OPENBSD_2_7: 1.15.0.2
OPENBSD_2_7_BASE: 1.15
OPENBSD_2_6: 1.11.0.2
OPENBSD_2_6_BASE: 1.11
OPENBSD_2_5: 1.8.0.2
OPENBSD_2_5_BASE: 1.8
OPENBSD_2_4: 1.6.0.4
OPENBSD_2_4_BASE: 1.6
OPENBSD_2_3: 1.6.0.2
OPENBSD_2_3_BASE: 1.6
OPENBSD_2_2: 1.5.0.2
OPENBSD_2_2_BASE: 1.5
OPENBSD_2_1: 1.2.0.2
OPENBSD_2_1_BASE: 1.2
OPENBSD_2_0: 1.1.1.1.0.2
OPENBSD_2_0_BASE: 1.1.1.1
netbsd_1_1: 1.1.1.1
keyword substitution: kv
total revisions: 28; selected revisions: 28
description:
----------------------------
revision 1.27
date: 2004/06/30 07:58:12; author: otto; state: Exp; lines: +7 -1
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@
----------------------------
revision 1.26
date: 2004/04/24 21:40:35; author: millert; state: Exp; lines: +10 -3
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@
----------------------------
revision 1.25
date: 2003/06/12 12:59:50; author: jmc; state: Exp; lines: +20 -20
- section reorder
- macro fixes
- kill whitespace at EOL
- new sentence, new line
----------------------------
revision 1.24
date: 2003/06/02 23:36:53; author: millert; state: Exp; lines: +2 -6
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
----------------------------
revision 1.23
date: 2003/04/08 01:26:21; author: david; state: Exp; lines: +1 -3
identd has been nowait for 5 years now
reported by Brad Ely <elyb328@apk.net>
ok tedu@
----------------------------
revision 1.22
date: 2003/02/03 17:46:56; author: jmc; state: Exp; lines: +5 -6
typos;
ipsecadm(8): examples ho@
help and ok markus@
----------------------------
revision 1.21
date: 2003/01/18 23:40:58; author: deraadt; state: Exp; lines: +4 -4
more typos; jmc@prioris.mini.pw.edu.pl
----------------------------
revision 1.20
date: 2002/05/06 22:24:58; author: millert; state: Exp; lines: +3 -3
Kill rlogind and rexecd Xr's and add Xr's for things we actually use.
----------------------------
revision 1.19
date: 2001/08/22 17:44:27; author: beck; state: Exp; lines: +2 -1
ftp-proxy
----------------------------
revision 1.18
date: 2001/01/29 11:38:32; author: deraadt; state: Exp; lines: +2 -2
max actually defaults to 256, not 40
----------------------------
revision 1.17
date: 2000/10/23 14:44:09; author: aaron; state: Exp; lines: +2 -3
Use the standard option descriptions introduction.
----------------------------
revision 1.16
date: 2000/06/14 16:06:07; author: itojun; state: Exp; lines: +9 -77
clarify tcp4/tcp6 interaction.
----------------------------
revision 1.15
date: 2000/04/15 02:15:18; author: aaron; state: Exp; lines: +2 -2
Mostly punctuation fixes.
----------------------------
revision 1.14
date: 2000/04/12 21:47:53; author: aaron; state: Exp; lines: +3 -3
Trailing whitespace begone!
----------------------------
revision 1.13
date: 2000/03/19 17:57:05; author: aaron; state: Exp; lines: +51 -31
Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some other
cleanup along the way.
----------------------------
revision 1.12
date: 1999/12/08 13:21:17; author: itojun; state: Exp; lines: +119 -1
IPv6/v4 inetd(8) from KAME. now you can test ftp over IPv6.
----------------------------
revision 1.11
date: 1999/09/23 04:12:10; author: alex; state: Exp; lines: +2 -2
Typo fixes.
----------------------------
revision 1.10
date: 1999/06/05 22:17:01; author: aaron; state: Exp; lines: +9 -9
remove trailing whitespace, some Nm cleanup
----------------------------
revision 1.9
date: 1999/05/23 14:11:33; author: aaron; state: Exp; lines: +2 -2
remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com
----------------------------
revision 1.8
date: 1998/12/04 07:52:02; author: deraadt; state: Exp; lines: +3 -3
support user.group or user:group, per chown(8)
----------------------------
revision 1.7
date: 1998/11/08 00:21:30; author: aaron; state: Exp; lines: +21 -22
usr.sbin/ man page repairs, a-i
----------------------------
revision 1.6
date: 1997/11/14 03:46:00; author: deraadt; state: Exp; lines: +5 -1
clone freebsd "-R rate"; default to 256 invocations/minute
----------------------------
revision 1.5
date: 1997/06/26 06:27:27; author: denny; state: Exp; lines: +10 -3
Document inetd's allowing mutliple comma-separated hostnames in inetd.conf.
----------------------------
revision 1.4
date: 1997/06/18 03:01:42; author: denny; state: Exp; lines: +32 -2
Document inetd.conf's per-interface binding (new verbage from der Mouse's netbsd mods).
----------------------------
revision 1.3
date: 1997/05/30 07:56:08; author: deraadt; state: Exp; lines: +21 -7
wait wrks on tcp; rickb@iaw.on.ca
----------------------------
revision 1.2
date: 1997/01/13 20:45:28; author: deraadt; state: Exp; lines: +2 -2
correct; kleink@layla.inka.de
----------------------------
revision 1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp; lines: +0 -0
initial import of NetBSD tree
=============================================================================
RCS file: /cvs/src/usr.sbin/inetd/inetd.c,v
Working file: inetd.c
head: 1.123
branch:
locks: strict
access list:
symbolic names:
OPENBSD_3_7: 1.122.0.2
OPENBSD_3_7_BASE: 1.122
OPENBSD_3_6: 1.120.0.2
OPENBSD_3_6_BASE: 1.120
OPENBSD_3_5: 1.115.0.2
OPENBSD_3_5_BASE: 1.115
OPENBSD_3_4: 1.111.0.2
OPENBSD_3_4_BASE: 1.111
OPENBSD_3_3: 1.108.0.2
OPENBSD_3_3_BASE: 1.108
OPENBSD_3_2: 1.107.0.2
OPENBSD_3_2_BASE: 1.107
OPENBSD_3_1: 1.89.0.2
OPENBSD_3_1_BASE: 1.89
OPENBSD_3_0: 1.85.0.2
OPENBSD_3_0_BASE: 1.85
OPENBSD_2_9_BASE: 1.82
OPENBSD_2_9: 1.82.0.2
OPENBSD_2_8: 1.69.0.2
OPENBSD_2_8_BASE: 1.69
OPENBSD_2_7: 1.61.0.2
OPENBSD_2_7_BASE: 1.61
OPENBSD_2_6: 1.56.0.4
OPENBSD_2_6_BASE: 1.56
OPENBSD_2_5: 1.56.0.2
OPENBSD_2_5_BASE: 1.56
OPENBSD_2_4: 1.49.0.2
OPENBSD_2_4_BASE: 1.49
OPENBSD_2_3: 1.46.0.2
OPENBSD_2_3_BASE: 1.46
OPENBSD_2_2: 1.40.0.2
OPENBSD_2_2_BASE: 1.40
OPENBSD_2_1: 1.25.0.2
OPENBSD_2_1_BASE: 1.25
OPENBSD_2_0: 1.21.0.2
OPENBSD_2_0_BASE: 1.21
netbsd_1_1: 1.1.1.1
keyword substitution: kv
total revisions: 125; selected revisions: 125
description:
----------------------------
revision 1.123
date: 2005/04/02 18:10:52; author: otto; state: Exp; lines: +10 -9
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@
----------------------------
revision 1.122
date: 2004/09/15 08:46:00; author: otto; state: Exp; lines: +5 -5
if (signalflag) { dowork(); signalflag = 0; } is a race. First clear flag,
then call work(). ok deraadt@
----------------------------
revision 1.121
date: 2004/09/14 22:28:41; author: deraadt; state: Exp; lines: +7 -4
remove gcc specific extensions, and ARGSUSED where useful
----------------------------
revision 1.120
date: 2004/09/06 07:03:08; author: otto; state: Exp; lines: +9 -5
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@
----------------------------
revision 1.119
date: 2004/07/28 13:08:19; author: millert; state: Exp; lines: +8 -2
Should set user and group on unix domain sockets as reported by Juan Vera.
----------------------------
revision 1.118
date: 2004/06/30 07:58:12; author: otto; state: Exp; lines: +18 -19
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@
----------------------------
revision 1.117
date: 2004/04/24 21:40:35; author: millert; state: Exp; lines: +81 -126
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@
----------------------------
revision 1.116
date: 2004/03/31 19:12:22; author: millert; state: Exp; lines: +10 -3
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@
----------------------------
revision 1.115
date: 2004/01/06 19:45:54; author: millert; state: Exp; lines: +6 -5
Fix signal handling when there is an error in inetd.conf. Found by
mpech@. OK mpech@ and deraadt@
----------------------------
revision 1.114
date: 2003/12/23 15:24:28; author: mpech; state: Exp; lines: +9 -9
Remove unnecessary casts (char *).
millert@ ok.
----------------------------
revision 1.113
date: 2003/10/24 20:30:02; author: avsm; state: Exp; lines: +3 -3
dont compare int to NULL, millert@ ok
----------------------------
revision 1.112
date: 2003/10/03 22:43:37; author: deraadt; state: Exp; lines: +6 -5
exit if no config file; jeffi@rcn.com
----------------------------
revision 1.111
date: 2003/06/26 19:47:08; author: deraadt; state: Exp; lines: +4 -4
strict proto cleanups
----------------------------
revision 1.110
date: 2003/06/02 23:36:53; author: millert; state: Exp; lines: +3 -7
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
----------------------------
revision 1.109
date: 2003/04/28 02:58:45; author: itojun; state: Exp; lines: +3 -3
advocate posix ":" for user:group. deraadt ok
----------------------------
revision 1.108
date: 2002/11/11 23:46:29; author: millert; state: Exp; lines: +4 -4
Pass gcc -ansi -pedantic; Chad Loder
----------------------------
revision 1.107
date: 2002/09/06 19:46:52; author: deraadt; state: Exp; lines: +7 -5
use more socklen_t; pvalchev
----------------------------
revision 1.106
date: 2002/07/20 18:01:18; author: deraadt; state: Exp; lines: +5 -3
abort on setusercontext failure; millert ok
----------------------------
revision 1.105
date: 2002/07/15 23:05:17; author: deraadt; state: Exp; lines: +5 -4
minor tweaks
----------------------------
revision 1.104
date: 2002/07/15 22:26:31; author: deraadt; state: Exp; lines: +39 -79
ansi
----------------------------
revision 1.103
date: 2002/07/04 12:36:56; author: itojun; state: Exp; lines: +3 -3
correct udp-from-broadcast check. from <andre@ae-35.com>
----------------------------
revision 1.102
date: 2002/06/28 22:41:10; author: deraadt; state: Exp; lines: +6 -5
minor KNF
----------------------------
revision 1.101
date: 2002/06/21 07:30:09; author: deraadt; state: Exp; lines: +4 -4
kill gratuitous hex; millert ok
----------------------------
revision 1.100
date: 2002/06/21 06:20:28; author: millert; state: Exp; lines: +22 -35
o change some 0-2 to *_FILENO
o don't #ifdef RLIMIT_NOFILE
o dup2() safety
o some NULL vs. 0 changes
deraadt@ OK
----------------------------
revision 1.99
date: 2002/06/07 07:37:41; author: itojun; state: Exp; lines: +29 -4
do not respond to udp service if ip_src matches broadcast addr. theo ok
----------------------------
revision 1.98
date: 2002/06/01 03:42:06; author: itojun; state: Exp; lines: +6 -6
machtime() is 32bit quantity.
----------------------------
revision 1.97
date: 2002/06/01 01:57:44; author: deraadt; state: Exp; lines: +15 -30
i find more: a stderr print that makes no sense, and a part that was
used by the fake setproctitle. itojun -- your turn.
----------------------------
revision 1.96
date: 2002/05/31 23:48:41; author: itojun; state: Exp; lines: +5 -5
cleanup socklen_t
----------------------------
revision 1.95
date: 2002/05/31 22:20:18; author: deraadt; state: Exp; lines: +257 -233
split out two major function blocks which made the indentation horrible
----------------------------
revision 1.94
date: 2002/05/31 20:20:53; author: itojun; state: Exp; lines: +28 -37
use setproctitle(3). check for IPv6 ftp bounce attack. deraadt ok
----------------------------
revision 1.93
date: 2002/05/30 19:09:05; author: deraadt; state: Exp; lines: +28 -28
minor KNF
----------------------------
revision 1.92
date: 2002/05/29 19:23:34; author: deraadt; state: Exp; lines: +5 -5
more strlcat
----------------------------
revision 1.91
date: 2002/05/26 09:25:21; author: deraadt; state: Exp; lines: +9 -8
pid_t cleanup
----------------------------
revision 1.90
date: 2002/05/22 09:09:32; author: deraadt; state: Exp; lines: +4 -4
more strcpy/sprintf death; mpech ok
----------------------------
revision 1.89
date: 2002/03/14 16:44:25; author: mpech; state: Exp; lines: +19 -19
kill more registers.
millert@ ok
----------------------------
revision 1.88
date: 2002/02/16 21:28:03; author: millert; state: Exp; lines: +37 -37
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.
----------------------------
revision 1.87
date: 2002/02/10 01:19:02; author: millert; state: Exp; lines: +3 -3
Fix SIGTERM handling; deraadt@ ok
----------------------------
revision 1.86
date: 2001/11/05 09:43:50; author: deraadt; state: Exp; lines: +26 -17
remove last signal race
----------------------------
revision 1.85
date: 2001/09/04 23:35:59; author: millert; state: Exp; lines: +34 -27
Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.
----------------------------
revision 1.84
date: 2001/09/03 21:22:38; author: pjanzen; state: Exp; lines: +3 -4
doreap() needn't preserve errno, since it's not a signal handler.
----------------------------
revision 1.83
date: 2001/07/04 06:46:58; author: deraadt; state: Exp; lines: +4 -8
cleanup; itojun & jasoni
----------------------------
revision 1.82
date: 2001/03/15 18:28:41; author: danh; state: Exp; lines: +6 -3
branches: 1.82.2;
break out of loop if a flag is set; ok deraadt@
----------------------------
revision 1.81
date: 2001/03/15 18:07:57; author: deraadt; state: Exp; lines: +14 -14
spin even cheaper
----------------------------
revision 1.80
date: 2001/03/15 17:53:09; author: deraadt; state: Exp; lines: +15 -15
check all flags before looping
----------------------------
revision 1.79
date: 2001/01/30 08:30:57; author: deraadt; state: Exp; lines: +10 -3
check for invalid [.max] fields
----------------------------
revision 1.78
date: 2001/01/29 21:08:11; author: deraadt; state: Exp; lines: +4 -3
mark signal races
----------------------------
revision 1.77
date: 2001/01/29 21:07:36; author: deraadt; state: Exp; lines: +7 -7
do not _exit() in fork()'d child
----------------------------
revision 1.76
date: 2001/01/29 21:06:43; author: deraadt; state: Exp; lines: +7 -7
do not exit(-1)
----------------------------
revision 1.75
date: 2001/01/29 11:23:28; author: deraadt; state: Exp; lines: +3 -3
use _exit() in signal handler
----------------------------
revision 1.74
date: 2001/01/17 19:30:03; author: deraadt; state: Exp; lines: +5 -5
use sig_atomic_t
----------------------------
revision 1.73
date: 2001/01/16 23:57:37; author: deraadt; state: Exp; lines: +18 -14
check flags every loop, not just on EINTR
----------------------------
revision 1.72
date: 2001/01/12 16:34:03; author: deraadt; state: Exp; lines: +96 -24
un-race three signal handlers, and fix the fd_set overflow gunk
----------------------------
revision 1.71
date: 2000/11/21 07:23:24; author: deraadt; state: Exp; lines: +2 -264
bye bye MULOG. code that is easy to read, is code that is easy to audit
----------------------------
revision 1.70
date: 2000/11/09 02:55:42; author: deraadt; state: Exp; lines: +3 -3
typo
----------------------------
revision 1.69
date: 2000/08/22 14:47:54; author: millert; state: Exp; lines: +4 -4
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.
----------------------------
revision 1.68
date: 2000/08/20 18:42:42; author: millert; state: Exp; lines: +17 -21
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.
----------------------------
revision 1.67
date: 2000/08/03 11:33:37; author: itojun; state: Exp; lines: +9 -3
udp source validation: drop v4 mapped altogether.
----------------------------
revision 1.66
date: 2000/08/01 19:05:23; author: itojun; state: Exp; lines: +3 -5
unused variable
----------------------------
revision 1.65
date: 2000/08/01 19:02:05; author: itojun; state: Exp; lines: +47 -11
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.
----------------------------
revision 1.64
date: 2000/08/01 18:52:50; author: itojun; state: Exp; lines: +36 -27
for datagram services, support IPv6.
----------------------------
revision 1.63
date: 2000/07/08 01:57:27; author: itojun; state: Exp; lines: +73 -49
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
----------------------------
revision 1.62
date: 2000/06/19 01:28:45; author: itojun; state: Exp; lines: +6 -2
honor scopeid when compare ipv6 addrs
----------------------------
revision 1.61
date: 2000/03/04 01:10:06; author: deraadt; state: Exp; lines: +56 -33
handle corrupt inetd.conf files better; sdb@ssr.com
----------------------------
revision 1.60
date: 2000/02/01 03:23:58; author: deraadt; state: Exp; lines: +2 -3
no need to extern int errno if errno.h is included
----------------------------
revision 1.59
date: 1999/12/10 16:19:29; author: deraadt; state: Exp; lines: +12 -16
indent
----------------------------
revision 1.58
date: 1999/12/10 10:28:40; author: deraadt; state: Exp; lines: +9 -8
repair various bugs in -d mode
----------------------------
revision 1.57
date: 1999/12/08 13:21:17; author: itojun; state: Exp; lines: +80 -4
IPv6/v4 inetd(8) from KAME. now you can test ftp over IPv6.
----------------------------
revision 1.56
date: 1999/02/24 12:31:30; author: deraadt; state: Exp; lines: +3 -3
fix -R option; hugh
----------------------------
revision 1.55
date: 1999/01/04 12:03:08; author: niklas; state: Exp; lines: +3 -3
PIDs does not always fit in short
----------------------------
revision 1.54
date: 1998/12/04 07:52:02; author: deraadt; state: Exp; lines: +8 -6
support user.group or user:group, per chown(8)
----------------------------
revision 1.53
date: 1998/11/21 00:15:58; author: deraadt; state: Exp; lines: +3 -3
missing \n
----------------------------
revision 1.52
date: 1998/11/19 06:34:03; author: deraadt; state: Exp; lines: +5 -4
catch extra junk at the end of the numbers
----------------------------
revision 1.51
date: 1998/11/18 23:25:35; author: deraadt; state: Exp; lines: +11 -7
correct strtol() mess around rpc version numbers
----------------------------
revision 1.50
date: 1998/10/28 18:01:17; author: deraadt; state: Exp; lines: +3 -3
fix ? usage handling; route@resentment.infonexus.com
----------------------------
revision 1.49
date: 1998/07/15 17:51:14; author: deraadt; state: Exp; lines: +6 -3
close fd leak; jeff@FORYS.CRANBURY.NJ.US
----------------------------
revision 1.48
date: 1998/07/13 02:11:48; author: millert; state: Exp; lines: +3 -3
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.
----------------------------
revision 1.47
date: 1998/06/03 08:06:01; author: deraadt; state: Exp; lines: +7 -4
use sigsetops, and do cross-block signal handlers
----------------------------
revision 1.46
date: 1998/03/12 00:19:16; author: deraadt; state: Exp; lines: +18 -17
unblock SIGPIPE before execv(); chuck.
convert to sigaction(); deraadt.
----------------------------
revision 1.45
date: 1998/02/24 20:21:32; author: deraadt; state: Exp; lines: +6 -3
udp time may be contacted at dynamic reserved
----------------------------
revision 1.44
date: 1997/12/23 23:46:16; author: deraadt; state: Exp; lines: +4 -3
make it more obvious why pmap_set syslogs happen
----------------------------
revision 1.43
date: 1997/12/04 21:35:29; author: art; state: Exp; lines: +5 -4
Fixed a sysadmin-dos.
----------------------------
revision 1.42
date: 1997/11/14 03:46:00; author: deraadt; state: Exp; lines: +22 -6
clone freebsd "-R rate"; default to 256 invocations/minute
----------------------------
revision 1.41
date: 1997/11/14 03:40:02; author: deraadt; state: Exp; lines: +3 -3
crank TOOMANY to 160 for now
----------------------------
revision 1.40
date: 1997/09/19 12:21:27; author: deraadt; state: Exp; lines: +4 -2
ignore SIGPIPE; not nearly as much of a problem as linux though
----------------------------
revision 1.39
date: 1997/08/31 18:04:37; author: deraadt; state: Exp; lines: +38 -20
only check for ftp bounce in tcp, duh. for nonreserved ports, do not
close for looping mode. kill an fd leak.
----------------------------
revision 1.38
date: 1997/08/29 17:07:04; author: deraadt; state: Exp; lines: +5 -4
very weird sleep; dholland@eecs.harvard.edu
----------------------------
revision 1.37
date: 1997/08/04 19:26:10; author: deraadt; state: Exp; lines: +4 -2
save errno in sigchld handlers
----------------------------
revision 1.36
date: 1997/07/22 21:12:28; author: deraadt; state: Exp; lines: +32 -33
cleanup
----------------------------
revision 1.35
date: 1997/07/08 20:37:30; author: kstailey; state: Exp; lines: +3 -3
print child exit status in debug mode.
----------------------------
revision 1.34
date: 1997/07/08 20:31:14; author: kstailey; state: Exp; lines: +20 -23
NULL
----------------------------
revision 1.33
date: 1997/06/26 17:31:22; author: deraadt; state: Exp; lines: +17 -17
mem* cleanup
----------------------------
revision 1.32
date: 1997/06/26 06:26:15; author: denny; state: Exp; lines: +233 -71
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.
----------------------------
revision 1.31
date: 1997/06/23 09:37:37; author: deraadt; state: Exp; lines: +6 -6
return 32-bits worth of time for time service
----------------------------
revision 1.30
date: 1997/06/23 09:35:04; author: deraadt; state: Exp; lines: +4 -4
sigblock plays with ints
----------------------------
revision 1.29
date: 1997/06/17 05:41:19; author: deraadt; state: Exp; lines: +2 -8
do not test for a bug which does not exist
----------------------------
revision 1.28
date: 1997/06/17 05:26:22; author: denny; state: Exp; lines: +114 -5
Add per-interface binding, based on der Mouse's code in netbsd.
----------------------------
revision 1.27
date: 1997/06/04 11:07:05; author: deraadt; state: Exp; lines: +6 -6
toast extra \n; ficus
----------------------------
revision 1.26
date: 1997/06/04 11:03:15; author: deraadt; state: Exp; lines: +3 -2
do not exceed bounds of fd_set
----------------------------
revision 1.25
date: 1997/02/24 12:48:06; author: deraadt; state: Exp; lines: +3 -6
irc thing is dumb, and do not bother wasting effort screaming about ftp bounce attempts, just slaughter them
----------------------------
revision 1.24
date: 1997/01/15 23:43:59; author: millert; state: Exp; lines: +3 -3
getopt(3) returns -1 when out of args, not EOF, whee!
----------------------------
revision 1.23
date: 1996/12/14 19:19:09; author: deraadt; state: Exp; lines: +12 -3
be more careful with setgroups()
----------------------------
revision 1.22
date: 1996/12/11 09:05:05; author: deraadt; state: Exp; lines: +21 -19
proto & column cleanup
----------------------------
revision 1.21
date: 1996/08/31 17:31:05; author: deraadt; state: Exp; lines: +3 -17
rpc is not an option anymore
----------------------------
revision 1.20
date: 1996/08/28 09:55:00; author: deraadt; state: Exp; lines: +29 -13
closer towards useable by generic joe
----------------------------
revision 1.19
date: 1996/08/16 08:32:54; author: deraadt; state: Exp; lines: +3 -3
do not do bindresvport if user runs own inetd
----------------------------
revision 1.18
date: 1996/08/11 23:24:25; author: deraadt; state: Exp; lines: +10 -10
fix doc order of setgid/initgroups/setuid
----------------------------
revision 1.17
date: 1996/08/02 07:18:35; author: deraadt; state: Exp; lines: +14 -7
merge freebsd setlogin/setsid changes
----------------------------
revision 1.16
date: 1996/08/02 06:47:41; author: deraadt; state: Exp; lines: +6 -6
indent
----------------------------
revision 1.15
date: 1996/08/02 06:13:26; author: deraadt; state: Exp; lines: +14 -3
after rpc bind, getpeername() to update sin_port
----------------------------
revision 1.14
date: 1996/07/31 11:01:54; author: deraadt; state: Exp; lines: +18 -14
proto throughout
----------------------------
revision 1.13
date: 1996/07/29 23:45:34; author: deraadt; state: Exp; lines: +5 -2
udp spam on 6667
----------------------------
revision 1.12
date: 1996/07/29 09:14:55; author: deraadt; state: Exp; lines: +19 -0
careful of bad addr/port in dgram services
----------------------------
revision 1.11
date: 1996/07/29 09:13:31; author: deraadt; state: Exp; lines: +82 -43
-Wall clean; careful buffer usage
----------------------------
revision 1.10
date: 1996/07/29 07:53:07; author: downsj; state: Exp; lines: +6 -2
Zero out the port for RPC services; let bind() find one.
----------------------------
revision 1.9
date: 1996/07/29 03:43:54; author: deraadt; state: Exp; lines: +4 -2
from port 20, do not leak an fd
----------------------------
revision 1.8
date: 1996/07/28 05:54:41; author: deraadt; state: Exp; lines: +8 -7
arthur (in)dent
----------------------------
revision 1.7
date: 1996/07/28 05:13:19; author: joshd; state: Exp; lines: +14 -3
Do not allow hosts to connect to servers from
source ports < IPPORT_RESERVED/2. This is for ftp bounce attacks,
----------------------------
revision 1.6
date: 1996/06/29 01:02:24; author: deraadt; state: Exp; lines: +3 -4
bindresvport() called incorrectly; we need a proto somewhere guys
----------------------------
revision 1.5
date: 1996/06/28 17:50:09; author: deraadt; state: Exp; lines: +3 -2
closelog() before we trash the syslog descriptor; suggestion from alan@parsys.co.uk
----------------------------
revision 1.4
date: 1996/06/12 07:23:26; author: deraadt; state: Exp; lines: +17 -6
use resv port only for root processes
----------------------------
revision 1.3
date: 1996/05/13 16:00:08; author: deraadt; state: Exp; lines: +7 -1
bindresvport() for rpc ports
----------------------------
revision 1.2
date: 1996/03/25 15:55:24; author: niklas; state: Exp; lines: +7 -10
From NetBSD: merge of 960317
----------------------------
revision 1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 1995/10/18 08:47:36; author: deraadt; state: Exp; lines: +0 -0
initial import of NetBSD tree
----------------------------
revision 1.82.2.1
date: 2001/07/17 04:13:48; author: jason; state: Exp; lines: +4 -8
Pull in patch from current:
Fix (deraadt):
cleanup; itojun & jasoni (adds checking of IPv6 udp source port)
=============================================================================
RCS file: /cvs/src/usr.sbin/inetd/pathnames.h,v
Working file: pathnames.h
head: 1.2
branch:
locks: strict
access list:
symbolic names:
OPENBSD_3_7: 1.2.0.8
OPENBSD_3_7_BASE: 1.2
OPENBSD_3_6: 1.2.0.6
OPENBSD_3_6_BASE: 1.2
OPENBSD_3_5: 1.2.0.4
OPENBSD_3_5_BASE: 1.2
OPENBSD_3_4: 1.2.0.2
OPENBSD_3_4_BASE: 1.2
OPENBSD_3_3: 1.1.1.1.0.28
OPENBSD_3_3_BASE: 1.1.1.1
OPENBSD_3_2: 1.1.1.1.0.26
OPENBSD_3_2_BASE: 1.1.1.1
OPENBSD_3_1: 1.1.1.1.0.24
OPENBSD_3_1_BASE: 1.1.1.1
OPENBSD_3_0: 1.1.1.1.0.22
OPENBSD_3_0_BASE: 1.1.1.1
OPENBSD_2_9_BASE: 1.1.1.1
OPENBSD_2_9: 1.1.1.1.0.20
OPENBSD_2_8: 1.1.1.1.0.18
OPENBSD_2_8_BASE: 1.1.1.1
OPENBSD_2_7: 1.1.1.1.0.16
OPENBSD_2_7_BASE: 1.1.1.1
OPENBSD_2_6: 1.1.1.1.0.14
OPENBSD_2_6_BASE: 1.1.1.1
OPENBSD_2_5: 1.1.1.1.0.12
OPENBSD_2_5_BASE: 1.1.1.1
OPENBSD_2_4: 1.1.1.1.0.10
OPENBSD_2_4_BASE: 1.1.1.1
OPENBSD_2_3: 1.1.1.1.0.8
OPENBSD_2_3_BASE: 1.1.1.1
OPENBSD_2_2: 1.1.1.1.0.6
OPENBSD_2_2_BASE: 1.1.1.1
OPENBSD_2_1: 1.1.1.1.0.4
OPENBSD_2_1_BASE: 1.1.1.1
OPENBSD_2_0: 1.1.1.1.0.2
OPENBSD_2_0_BASE: 1.1.1.1
netbsd_1_1: 1.1.1.1
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.2
date: 2003/06/02 23:36:53; author: millert; state: Exp; lines: +2 -6
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
----------------------------
revision 1.1
date: 1995/10/18 08:47:37; author: deraadt; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 1995/10/18 08:47:37; author: deraadt; state: Exp; lines: +0 -0
initial import of NetBSD tree
=============================================================================
|