Debian Codegraph @

ChangeLog

raw
1 2021-01-30 Robert Luberda <[email protected]>
2
3 * man/rlinetd.conf.5.in: Fix duplicated '%w' in String Modifiers
4 section.
5
6 * man/po/pl.po: Fix a few typos in Polish translation.
7
8 * release 0.9.3.
9
10 2021-01-27 Robert Luberda <[email protected]>
11
12 * configure.ac: Use AS_IF macro to fix build failure when package is
13 reconfigured with autoconf 2.70, and --without-lsf ioption is passed
14 to ./configure (Debian bug#978896).
15
16 2020-12-19 Robert Luberda <[email protected]>
17
18 * release 0.9.2.
19
20 2020-07-20 Américo Monteiro <[email protected]>
21
22 * Initial Portuguese translation of manpage (Debian bug#965933).
23
24 2018-08-19 Robert Luberda <[email protected]>
25
26 * buffer.c, error.c: Fix gcc-8 warnings.
27
28 2016-10-16 Robert Luberda <[email protected]>
29
30 * release 0.9.1.
31
32 2015-08-02 Helge Kreutzmann <[email protected]>
33
34 * Update German man pages translation (Debian bug#733664,
35 bug#771296, bug#794362).
36
37 2013-11-17 Robert Luberda <[email protected]>
38
39 * configure.ac, rlinetd.conf.in, inetd2rlinetd.in, Makefile.am:
40 Take the value of configured value sysconfdir into account in
41 rlinetd.confi sample file and inetd2rlinetd script. Have the
42 documentation and examples files installed during `make install'.
43 Install the rlinetd.conf file into $sysconfdir unless the destination
44 file already exists.
45
46 * release 0.9.
47
48 2013-11-11 Robert Luberda <[email protected]>
49
50 * grammar.y: Fix stack smashing occurring on IPv6 RPC services.
51 The buffer passed to getsockname(2) was too small to store IPv6
52 address, which in turn caused stack overwrite detected by glibc
53 when rlinetd was compiled with hardening options enabled.
54
55 * grammar.y: Reuse RPC ports for same service on all interfaces.
56 The pmap_set(3) function does not allow one to register the same
57 RPC service with different ports on different network interfaces
58 or addresses, so from now on rlinetd:
59 + makes sure the same port for RPC service is used on all
60 interfaces;
61 + takes the initial value of the port from portmap in case the
62 service is already registered (the intial value is assigned
63 by the system otherwise);
64 + calls pmap_set() only once for each version of RPC service
65 defined as one rlinetd's service.
66
67 * lex.l, grammar.y, rlinetd.5.conf.in: Introduce `interface any;'
68 This can be used to overwrite per rlinetd's service intefaces
69 defined in default section of configuration file.
70
71 2013-10-20 Robert Luberda <[email protected]>
72
73 * configure.ac: Add support for large files (AC_SYS_LARGEFILE).
74 This requires "config.h" file to be included as the first in
75 all *.c files.
76
77 * configure.ac: Add --enable-warnings (enabled by default).
78 Pass -Wall -Wextra together with a few other warnings options to gcc,
79 and fix the warnings across all source files.
80
81 * configure.ac: Use AS_HELP_STRING in all AM_ARG_WITH macros.
82
83 2012-09-12 Robert Luberda <[email protected]>
84
85 * src/engine.c, src/grammar.y: Fix fd_set buffer overflows.
86 Make sure that FD_ISSET, FD_SET, FD_CLR macros are called with proper
87 arguments not to overflow the fd_set buffers. Especially use FD_SETSIZE
88 instead of getdtablesize() as the upper bound of loops that iterate
89 over fd_sets and fix stop conditions of such loops in engine.c.
90 glibc 1.15 with -D_FORTIFY_SOURCE=2 checks the bounds of fd_set
91 buffers, which made the error in rlinetd immediately visible on Ubuntu
92 (Ubuntu bug LP#1057645).
93
94 * scripts/inetd2rlinetd.in: Add support for udp4 and similar protocols.
95 Apply patch from Ubuntu LP#1057663 to handle protocols ending with IP
96 version, like udp4 or tcp6, from /etc/inetd.conf.
97 (Ubuntu bug LP#1057663).
98
99 2012-02-26 Robert Luberda <[email protected]>
100
101 * src/data.h, src/grammar.y: drop some unnecessary debugging messages
102 produced while parsing configuration file.
103
104 * man/Makefile.am: fix `non-POSIX variable name' warning.
105
106 * release 0.8.2.
107
108 2012-02-05 Robert Luberda <[email protected]>
109
110 * configure.ac: add support for AM_SILENT_RULES.
111
112 * man/*: update the man pages "FILES" section during
113 the install time so that the real files location
114 are documented.
115
116 * release 0.8.1.
117
118 2011-08-01 Helge Kreutzmann <[email protected]>
119
120 * Update German man pages translation (Debian bug#636237).
121
122 2011-07-25 Robert Luberda <[email protected]>
123
124 * release rlinetd 0.8
125
126 2011-07-15 Robert Luberda <[email protected]>
127
128 * main.c, rlinetd.8: document long options.
129
130 2011-07-09 Robert Luberda <[email protected]>
131
132 * data.c, grammar.y, cleanups.c: minor portability fixes.
133
134 2011-07-02 Robert Luberda <[email protected]>
135
136 * Fix typos in man pages noted by Christian Perrier
137 <[email protected]>. Unfuzzy translations.
138
139 * bytecode.c: Fix -Wformat-security error.
140
141 * inetd2rlinetd.in: Implement --add-from-comment option.
142
143 2011-07-02 Helge Kreutzmann <[email protected]>
144
145 * German man pages translation.
146
147 2010-03-20 Robert Luberda <[email protected]>
148
149 * release rlinetd 0.7
150
151 2009-12-07 Robert Luberda <[email protected]>
152
153 * engine.c, main.c: Properly daemonize with daemon() function. Keep descriptions
154 0, 1 & 2 opened to /dev/null.
155
156 * bytecode.c: Call setsid() before execv() to prevent to prevent
157 daemons like smbd from killing rlinetd with kill(0, SIGTERM)
158
159 * data.h,assemble.c grammar.y: Copy all settings from default service,
160 redesign fixups and the service structure to make it work.
161
162 * grammar.y: Rework interactions between initgroups, user and group directives.
163
164 * grammar.y, rlinetd.conf.5: Support `yes' & `no' arguments for `initgroups'.
165
166 * db.c: enhance bytecode debugging mode.
167
168 2009-02-10 Robert Luberda <[email protected]>
169
170 * Man pages fixes.
171
172 * Copy translated man pages in dist target.
173
174
175 2009-02-10 Robert Luberda <[email protected]>
176
177 * connect.c: Disable unused rl_connect() function.
178
179 * signals.c, lex.l: Fix -Wextra warnings.
180
181
182 2009-01-03 Robert Luberda <[email protected]>
183
184 * grammar.y: Add enable keyword to allow easily enabling/disabling services.
185
186 * inetd2rlinetd.in: New options: --force-overwrite and --print-generated-files,
187 mostly for supporting Debian's inetd server configuration management.
188
189 2009-01-01 Robert Luberda <[email protected]>
190
191 * Move source files to src dir.
192
193 2008-12-30 Robert Luberda <[email protected]>
194
195 * Add NLS support for binary program and man pages.
196
197 2008-04-13 Robert Luberda <[email protected]>
198
199 * bytecode.c: fix `undefined behaviour' warning which caused rlinetd
200 compiled with gcc 4 to abort on internal services.
201
202 * man/rlinetd.8, man/rlinetd.conf.5: minor fixes.
203
204 * release rlinetd 0.6.2
205
206 2007-03-21 Robert Luberda <[email protected]>
207
208 * grammar.y: fix another possible stack corruption error, which occurs
209 when the default service is configured as a RPC service (very
210 unlikely configuration)
211
212 * release rlinetd 0.6.1
213
214
215 2007-03-20 Robert Luberda <[email protected]>
216
217 * grammar.y: fix stack corruption error by NULL-ifing the destination
218 rpc number list before passing it to the numlist_copy() function.
219
220 2007-01-02 Robert Luberda <[email protected]>
221
222 * grammar.y: fix segmentation fault on RPC services for which getaddrinfo()
223 returns more then one addrinfo result.
224
225 2006-03-21 Robert Luberda <[email protected]>
226
227 * configure.ac: fix typo to make --with-nsl actually work.
228
229 2006-03-19 Robert Luberda <[email protected]>
230
231 * configure.ac: update or remove some autoconf macros.
232
233 * configure.ac: implement --with-nsl option.
234
235 * Makefile.am: remove debian directory from EXTRA_DIST.
236
237 * NEWS, README.inetd, other doc files: update.
238
239 * configure, Makefile.*: update autoconf stuff.
240
241 * rlinetd 0.6.
242
243 2006-03-16 Robert Luberda <[email protected]>
244
245 * lex.l, grammar.y, data.h, inetd2rlinetd.in: implement the `wait'
246 keyword, which sets instances to 1 and do not call accept() for
247 the TCP services. This allows famd program to work correctly with
248 rlinetd.
249
250 * rlinetd.conf.5: document the new keyword.
251
252 * examples/rpc: add example configuration file for RPC services.
253
254 2006-03-14 Robert Luberda <[email protected]>
255
256 * grammar.y: if a port for RPC services is not specified, made it
257 dynamically assigned.
258
259 * rlinetd.conf.5: document the above change.
260
261 * inetd2rlinetd.in: for the RPC services always set rpc name, but never
262 output the port to made it dynamic.
263
264 * lex.l, grammar.y: made the T_NUMERIC terminal by default
265 unsigned (i.e. don't treat leading '-' as part of the number)
266 and use new signed_numeric, when it's needed (only in the `nice'
267 keyword, I think). This fixes error parsing RPC versions range
268 like '2-3'.
269
270 * bytecode.h, grammar.y, rlinetd.h: properly define signed/unsigned
271 types to remove the "pointer targets ...differ in signedness"
272 warnings.
273
274 * configure.ac: add check for socklen_t type
275
276 2006-03-13 Robert Luberda <[email protected]>
277
278 * grammar.y: fix double free problem in services_free().
279
280 * grammar.y: pass proper port to pmap_set() when it's dynamically
281 assigned for RPC.
282 Thanks to Jakub Bogusz <qboosh+pld-linux.org> for the above patches.
283
284 * signals.c, signals.h, engine.c: handle SIGTERM & SIGHUP by calling
285 the services_free() function from the parser library to get the RPC
286 services unregistered with pmup_unset().
287
288
289 2004-02-24 Robert Luberda <[email protected]>
290
291 * inetd2rlinetd.in: sub ask_user opens /dev/tty when STDIN is not
292 connected to terminal
293
294 * inetd2rlinetd.in: add -l option
295
296 * rlinetd 0.5.19
297
298 2004-08-03 Robert Luberda <[email protected]>
299
300 * assemble.c, grammar.y: fix problem with building with gcc 3.4
301
302 * port/*.c: created or updated files needed by autoconf
303
304 * configure.ac: updated, renamed aux dir to auxiliary
305
306 * rlinetd 0.5.16
307
308 2004-05-25 Robert Luberda <[email protected]>
309
310 * bytecode.c: in tcp wrappers code, don't call refuse() from libwrap,
311 it exits program so the optional tcpd block won't be called
312
313 * bytecode.c: when tcp wrappers denied connection, log suitable
314 message (which was previously logged by refuse())
315
316 * libdb.c, grammar.y: add second argument to argvtab_add() to not strip
317 spaces in built-in echo command
318
319 * update autoconf stuff
320
321 * rlinetd 0.5.15
322
323 2003-01-03 Robert Luberda <[email protected]>
324
325 * data.h: added internal flag to service struct
326
327 * grammar.y: for internal services like chargen, echo, discard append
328 OP_CLOSE instead of OP_RET to onexit
329
330 * buffer.c: initialize head and tail fields of *buf in rlbuf_init()
331
332 * grammar.y: fix bison warning
333
334 * many files: check return value of memory allocation functions.
335
336 * Makefile.am: add -avoid-version to libparse_la_LDFLAGS
337
338 * rlinetd 0.5.11
339
340 2002-01-29 Robert Luberda <[email protected]>
341
342 * grammar.y: fix internal services which got broken in 0.5.4
343
344 * rlinetd 0.5.8
345
346 2001-12-01 Robert Luberda <[email protected]>
347
348 * configure.ac: added AM_MAINTAINER_MODE macro
349
350 * rlinetd 0.5.7
351
352 2001-08-19 Robert Luberda <[email protected]>
353
354 * inetd2rlinetd.in: rewritten
355
356 * inetd2rlinetd.8: updated
357
358 * configure.in: renamed to configure.ac. All autofiles updated
359 by aclocal & autoreconf
360
361 * rlinetd 0.5.4
362
363 2001-08-08 Robert Luberda <[email protected]>
364
365 * grammar.y: not only setuid to uid from `user' directive, but
366 also setgid to primary group of this user (unless `group' directive
367 is specified).
368
369 * grammar.y: better handling of T_UID, T_GID, T_INITGROUPS, T_NICE --
370 all of these may be in the default service.
371
372 * grammar.y: fix core dump when `initgroups' where used without `user'.
373
374
375 2001-07-09 Robert Luberda <[email protected]>
376
377 * error.c: new file. Moved rl_warn and rl_fatal here. Added rl_pwarn
378 and rl_pfatal to log name and line number of parsed file.
379
380 * grammar.y: changed to use rl_pwarn instead of warn.
381
382 * error.c: in rl_(p)fatal call exit() instead of abort().
383
384 * grammar.y: fix core dump when specifying unknown username in `log'
385 directive.
386
387 * main.c: chdir to "/" on startup.
388
389 * man/rlinetd.8: added FILES section.
390
391 2001-07-04 Robert Luberda <[email protected]>
392
393 * aux/config.*, configure.in, */Makefile.in: updated
394
395 * bytecode.c: fix "unknown opcode 19" problem (patch from PLD).
396
397 * bytecode.c: use execvp instead of execv (patch from PLD).
398
399 * man/inetd2rlinetd.1: renamed to inetd2rlinetd.8
400
401 * rlinetd 0.5.2
402
403 1999-09-03 Mikolaj J. Habryn <[email protected]>
404
405 * examples/builtins: example of easiest ways of doing typical
406 inetd small services.
407
408 * grammar.y: oops. fix up opcount for discard.
409
410 * rlinetd 0.5.1 released
411
412 1999-08-29 Mikolaj J. Habryn <[email protected]>
413
414 * engine.c: move getdtablesize() calls out of line in for loop.
415
416 * grammar.y: move getdtablesize() calls out of line in for loop.
417
418 1999-08-27 Mikolaj J. Habryn <[email protected]>
419
420 * config.h.top: protect config.h against multiple inclusion
421
422 * libdb.c: fix up includes
423
424 * db.h: fix up includes
425
426 * config.h.bot: add an rlim_t typedef fallback
427
428 * configure.in: test for rlim_t in <sys/resource.h>
429
430 1999-08-20 Mikolaj J. Habryn <[email protected]>
431
432 * buffer.c: don't dereference errno for errors in do_{read,write},
433 propagate EPIPE error without screaming. chargen actually works.
434
435 * signals.c: SIG_IGN SIGPIPE
436
437 * buffer.c: wrote buftab_addbuf, completed chargen support.
438
439 * grammar.y: added 'loopback' directive to mean inetd-like echo
440 service.
441
442 1999-08-14 Mikolaj J. Habryn <[email protected]>
443
444 * grammar.y (opcode_element): wrote chargen support
445
446 1999-08-13 Mikolaj J. Habryn <[email protected]>
447
448 * grammar.y: append an OP_RET to onexit unconditionally, since the
449 parent should have already closed the socket if necessary.
450
451 * bytecode.c (run_bytecode): added OP_BUFCLONE,
452 OP_BUFFREE. Renamed OP_BANNER to OP_BUFCOPY
453
454 * grammar.y: wrote new opstream for banner directive in terms of
455 OP_BUFCOPY.
456
457 * libdb.c: renamed maptab* to buftab*
458
459 * buffer.c: wrote rlbuf_copy, rlbuf_init
460
461 * configure.in (libcap): unified the capability checks
462
463 1999-08-12 Mikolaj J. Habryn <[email protected]>
464
465 * man/rlinetd.conf.5 (Example): document extended directory syntax
466 and filter directive
467
468 * configure.in (nogai): only look for libinet6 if we don't find
469 getaddrinfo in the standard libraries.
470
471 * grammar.y: added an ignore regexp to directory statement.
472 (add_directory): check to make sure that we aren't opening a
473 directory.
474
475 1999-08-07 Mikolaj J. Habryn <[email protected]>
476
477 * grammar.y: accept a regexp in 'directory' statement to select
478 config files out of the specified directory.
479
480 * configure.in (lsf): look for getaddrinfo in libinet6
481
482 * assemble.c: force OP_CHROOT to happen before OP_SUID
483
484 * grammar.y: do strerror(errno) before close(fd).
485
486 * bytecode.c (run_bytecode): make failures in OP_CHROOT fatal
487
488 1999-08-05 Mikolaj J. Habryn <[email protected]>
489
490 * strings.c: wrote LOG_{A,C}TIME for easy implementing of
491 {day,}time inetd service equivalents.
492
493 * moved scripts into separate subdirectory
494
495 1999-08-02 Mikolaj J. Habryn <[email protected]>
496
497 * bytecode.c (run_bytecode): coerce F_SETFD and F_SETFL to
498 unsurprising values in OP_EXEC
499 (run_bytecode): boggle. accept(2)'d children lose O_NDELAY?
500
501 * grammar.y: oops - lost F_SETFD and F_SETFL on sockets since
502 getaddrinfo. minor boo-boo. honest. do it unconditionally.
503
504 1999-08-01 Mikolaj J. Habryn <[email protected]>
505
506 * bytecode.c: fixed up things to use inst->stk instead of ->reg,
507 wrote OP_ADD, OP_SUB, OP_BZNEG, OP_DUP, OP_POP. 'echo' and
508 'discard' should now theoretically handle errors.
509
510 * rlinetd.h: removed 'reg' element from rl_inst, added a stack
511
512 * bytecode.h: cleaned out irrelevant crap
513
514 * stack.c: wrote basic stack handling functions
515
516 1999-07-30 Mikolaj J. Habryn <[email protected]>
517
518 * grammar.y: wrote SO_ATTACH_FILTER handling, and 'filter'
519 directive.
520
521 * configure.in (libcap): removed AC_FUNC_MMAP test
522
523 * libdb.c: removed all of the mmap stuff from maptabs; using
524 rl_readfile instead.
525
526 * grammar.y: wrote all the various support bits for filter and
527 filterlen elements in c_s
528
529 * util.c (read_file): wrote rl_readfile
530
531 * rlinetd.conf.5 (Example): documented the funky tcpd
532 behaviour. Pity I didn't remember it for the 0.4 announcement :P
533
534 * assemble.c: make OP_DOWN precede anything useful
535
536 * grammar.y: put OP_DOWN in main stream, not parent stream.
537
538 * assemble.c: removed opmetalist_dump, dead code
539
540 * grammar.y: add OP_JUMP to c_s->onexit for exit and discard
541 streams. damn. instances just work :)
542
543 * bytecode.c (run_bytecode): wrote OP_JUMP
544
545 * grammar.y: remove explicit OP_CLOSE from exit and discard
546 opstreams.
547
548 1999-07-29 Mikolaj J. Habryn <[email protected]>
549
550 * assemble.c: rather tragic bug in opmeta_make. The final opcode,
551 if without arguments and not the *first* opcode, would be skipped
552 (and presumably garbage put in it's place). And another one in
553 opmetalist_resolve. My, it's exciting how they all come out of the
554 woodwork when you try to do something interesting, isn't it...
555
556 * grammar.y: wrote T_DISCARD rule
557
558 * bytecode.c (run_bytecode): wrote OP_{R,W}{UN,}HOOK wrappers for
559 fd hook functions, OP_BZ
560
561 * error.h: moved logging function definitions out to here
562
563 * buffer.h (rlbuf_write): prototypes and structures and the like.
564
565 * buffers.c: wrote buffer reading/writing functions. Moved other
566 buffer handling stuff into here also.
567
568 1999-07-27 Mikolaj J. Habryn <[email protected]>
569
570 * bytecode.c (run_bytecode): hmm. write_unhook being passed a
571 completely bogus value in OP_BANNER
572
573 * assemble.c: OP_BRANCH no longer a terminal (*sigh*)
574
575 * lex.l: added 'discard' keyword
576
577 * bytecode.c (run_bytecode): made OP_BRANCH jump within an
578 opstream instead of to other opstreams again.
579
580 * grammar.y: use inst_free in pidtab_fixup - fix *huge* memory
581 leak.
582
583 * bytecode.c (run_bytecode): wrote OP_BUFINIT
584
585 * engine.c: wrote inst_new, inst_free
586
587 * rlinetd.h: added pointer to an rl_buffer struct to rl_instance,
588 for buffered streams.
589
590 * making the entire cross-dependency multi-directory flex/bison
591 thing work on freebsd
592
593 1999-07-26 Mikolaj J. Habryn <[email protected]>
594
595 * lots of bsd compilation fixes
596
597 1999-07-23 Mikolaj J. Habryn <[email protected]>
598
599 * 0.4 released
600
601 * rlinetd.8: documented the getopt switches.
602
603 * rlinetd.conf.5: documented banner, echo, fixed minor display
604 problems.
605
606 1999-07-21 Mikolaj J. Habryn <[email protected]>
607
608 * assemble.c: add some missing terminals to achildren
609
610 * engine.c: leave stderr open if(rl_debug)
611
612 * grammar.y: free arg to 'server'
613
614 * lex.l: add 'file' as an alias for 'path'.
615
616 * grammar.y: free opmetalist in default case - plug memory leak.
617
618 1999-07-20 Mikolaj J. Habryn <[email protected]>
619
620 * assemble.c: OP_RLIMIT takes two args, not one
621
622 1999-07-19 Mikolaj J. Habryn <[email protected]>
623
624 * engine.c: free sockaddr in inst
625
626 * assemble.c: added id fields to all structs, for leak checks
627
628 1999-07-18 Mikolaj J. Habryn <[email protected]>
629
630 * bytecode.c (run_bytecode): log errors from execve(), cleaned up
631 the entire dup2() thing.
632
633 * grammar.y: default family to AF_UNSPEC if HAVE_GETADDRINFO
634
635 1999-07-16 Mikolaj J. Habryn <[email protected]>
636
637 * engine.c: argh. how wrong can I get a triply linked list? follow
638 the *cleanup* link in the cleanup routine.
639
640 * db.c: fill in forward back link
641
642 1999-07-15 Mikolaj J. Habryn <[email protected]>
643
644 * data.c: argh. need ref counting. another crasher in stringlists
645 (only shows up with defaults).
646
647 1999-07-12 Mikolaj J. Habryn <[email protected]>
648
649 * db.c: fixed crasher with pidtab handling
650
651 1999-07-11 Mikolaj J. Habryn <[email protected]>
652
653 * db.c: removed pidtab_walk
654
655 1999-07-05 Mikolaj J. Habryn <[email protected]>
656
657 * bytecode.c (run_bytecode): print executed opcodes conditional on
658 rl_debug, rather than compile time ifdef
659
660 * main.c: getopt - original patch from Arkadiusz Miśkiewicz
661
662 * grammar.y: stop fruiting around with argc/argv, accept variables
663 set up externally.
664
665 1999-06-18 Mikolaj J. Habryn <[email protected]>
666
667 * engine.c: walk cleanup list while holding the lock, removing
668 elements from pidtab lists.
669
670 * grammar.y: use OP_L{SET,CLR} in instance limit handling
671
672 * bytecode.c (run_bytecode): wrote OP_L{SET,CLR} to handle
673 adding/removing listening sockets.
674
675 * engine.c: removed fdset_{set,clr}, wrote listeners_{set,clear}
676 that explicitly work solely on the listening fds with fdsettab.
677
678 * grammar.y: hammered memory leaks closed
679
680 * db.c: reset things to null in *_free (how many times has this
681 bitten me?)
682
683 * rlinetd.h: pulled all references to rl_service.
684
685 * grammar.y: moved rl_cleanups into a separate list, trimmed
686 finalize_service to only do port binding and return an fdsettab
687 entry, renamed to bind_ports. all service handling stuff now
688 called from service: method in grammar.
689
690 * db.c: pulled all sockettab stuff - now unused
691
692 * db.h: pull rl_service reference out of struct pidtab
693
694 * db.c: change pidtab_add to accept an index to the opstream to
695 run on process exit.
696
697 * engine.c: use the pidtab->onexit field on process exit
698
699 * bytecode.c (run_bytecode): OP_ACCEPT now followed by an
700 argument, being the size of the buffer to pass to write the
701 peername into.
702
703 1999-06-17 Mikolaj J. Habryn <[email protected]>
704
705 * bytecode.c (run_bytecode): added OP_FROG - sometimes, you just
706 need it, trimmed out all inst->serv->name references (they were
707 wrong anyway...)
708
709 * grammar.y: cleaned up onexit setup for services, and using it in
710 the rl_service struct.
711
712 * engine.c: pulled surplus initialization of inst, added code to
713 process cleanup list.
714
715 * db.c: pidtab_get now returns struct pidtabs, struct pidtab now
716 is a doubly linked list with an additional forward link for HUP
717 handler's use.
718
719 * signals.c: pulled all references to rls_{hi,}pending, HUP
720 handler now just queues struct pidtabs for later processing
721
722 1999-06-14 Mikolaj J. Habryn <[email protected]>
723
724 * bytecode.c (run_bytecode): diked out the hardwired instance
725 counts. would be nice to have something to replace them with...
726
727 * configure.in (libcap): check for mmap
728
729 * libdb.c: fallback to malloc/read if mmap is missing
730
731 1999-06-07 Mikolaj J. Habryn <[email protected]>
732
733 * grammar.y: added an onexit opstream field to struct service,
734 fiddle with it in the service rule if there's a 'limit'
735 directive.
736
737 * bytecode.c (run_bytecode): made OP_FORK take two args, a parent
738 opstream and an on-exit opstream.
739
740 1999-06-06 Mikolaj J. Habryn <[email protected]>
741
742 * libdb.c: wrote fdset functions.
743
744 1999-06-05 Mikolaj J. Habryn <[email protected]>
745
746 * libdb.c: wrote semaphore functions. won't handle concurrent
747 accesses.
748
749 1999-06-04 Mikolaj J. Habryn <[email protected]>
750
751 * libdb.c: wrote escape_lookup to handle \n-style things in
752 argvtab'd strings. urk - crude hack in argvtab_add to accept
753 whitespace specified as \x (ie, \r\n).
754
755 * grammar.y: be consistent about freeing strings passed to
756 argvtab_add (ie, don't).
757
758 * bytecode.c (run_bytecode): wrote OP_ECHO
759
760 1999-05-31 Mikolaj J. Habryn <[email protected]>
761
762 * grammar.y: handle 'tcpd { ... }' directive style, free
763 intermediate opmetalists and oplists
764
765 1999-05-30 Mikolaj J. Habryn <[email protected]>
766
767 * bytecode.c (run_bytecode): OP_CLOSE resets inst->sock to -1.
768
769 * assemble.c: added terminals (including OP_EXIT) to various
770 lists.
771
772 * grammar.y: wrote OP_EXIT, use it in the OP_WRAP default case.
773
774 * bytecode.c: use the right macro for including tcpd.h
775
776 * configure.in: typo HAVE_TCPWRAPPERS->HAVE_TCP_WRAPPERS
777
778 * grammar.y: generate a default OP_WRAP fail case of OP_CLOSE,
779 wrote an opcode_block rule, added a variant for OP_WRAP to use
780 it. Added a rule for T_CLOSE.
781
782 * bytecode.c (run_bytecode): OP_WRAP now takes two args
783
784 1999-05-24 Mikolaj J. Habryn <[email protected]>
785
786 * signals.c: test disconnect before running
787
788 * grammar.y: append a closing thing to the opstreams, just in
789 case. initialize disconnect opstream to -1
790
791 * bytecode.c (run_bytecode): serv->name is an int not a char*
792
793 * engine.c: abort() on an rl_fatal
794
795 * assemble.c: OP_ACCEPT *before* OP_BANNER :)
796
797 * grammar.y: no visible error if only some of the getaddrinfo()'d
798 addresses bind - only error if all fail
799
800 * assemble.c: oops - typo in limit for loop
801
802 1999-05-23 Mikolaj J. Habryn <[email protected]>
803
804 * data.h: more trimming
805
806 * libdb.c: replaced oplist_free and oplist_copy (oops - can you
807 tell it's been a long time since I ran any tests?)
808
809 * data.h: trim out unneeded prototypes for oplist_*
810
811 1999-05-21 Mikolaj J. Habryn <[email protected]>
812
813 * bytecode.c (run_bytecode): recurse, and exit on return for child.
814
815 1999-05-19 Mikolaj J. Habryn <[email protected]>
816
817 * assemble.c: changed opmetalist_resolve to return an oplist
818
819 * data.h: removed oplists in struct service
820
821 * data.c: removed oplist handling functions
822
823 1999-05-17 Mikolaj J. Habryn <[email protected]>
824
825 * assemble.c: hunting memory leaks
826
827 * grammar.y: sanitized and fixed service_element chaining, fixed
828 up defaults for current_service
829
830 * assemble.c: reversed sense of vital (and only) logical test in
831 opmetalist_join... threw in some added paranoia
832
833 * db.c: purge last traces of initgrtabs
834
835 * grammar.y: the entire initgroups/user/group thing theoretically
836 works - but will probably fail with conditional setting
837
838 1999-05-14 Mikolaj J. Habryn <[email protected]>
839
840 * grammar.y: userid and groupid stuff all in place, but not
841 consistent wrt config line ordering
842
843 * libdb.c: pulled all the initgrtab functions
844
845 * grammar.y: changed groupid and userid to pass struct pointers
846 around.
847
848 * bytecode.c (run_bytecode): made OP_INITGR take two args.
849
850 * assemble.c: wrote opmetalist_resolve to actually dump out a
851 bytecode stream. converted opmetalist_add to return a success
852 value alone.
853
854 * grammar.y: added complex_opcode_element to allow passing back
855 multiple opmetas
856
857 * bytecode.c (run_bytecode): made OP_EXEC take two args for exec
858 and argv
859 (run_bytecode): changed OP_FORK semantics: now parent jumps to
860 indexed oplist, while child continues execcing current oplist.
861
862 * db.h: cleaned up prototypes
863
864 * strings.h: removed exec field from argvtab
865
866 1999-05-13 Mikolaj J. Habryn <[email protected]>
867
868 * data.c: pulled all the wrapinfo stuff - unused and unnecessary.
869
870 * grammar.y (opcode_element): two rules for OP_WRAP, arg-less one
871 using a fixup for iname. sweet :)
872
873 * data.h: added iname field for stringtab entry for service name
874
875 * assemble.c: wrote fixups for struct opmeta
876
877 * bytecode.c (run_bytecode): in child, exit(inst->reg) if opcode
878 stream returns.
879
880 * grammar.y: setting up opmetalist returns from service_elements
881
882 1999-05-12 Mikolaj J. Habryn <[email protected]>
883
884 * assemble.c: add OP_RET and OP_BRANCH to terminals, added a
885 length arg to opmeta_make, fixed crash in array_append
886
887 * data.c: add OP_RET at end of post stream :P
888
889 * bytecode.c (run_bytecode): wrote OP_RET
890
891 * assemble.c: wrote an intersect routine, started an _add,
892 discovered that more state needs to be maintained. argh.
893 converted everything to use struct array rather than rl_opcode_t
894 *. opmetalists written.
895
896 1999-05-11 Mikolaj J. Habryn <[email protected]>
897
898 * assemble.c: wrote opmeta_make, copy, union
899
900 * engine.c: call va_end on varargs'd args
901
902 * bytecode.h: started precedence table for opcodes. ugh.
903
904 * grammar.y: fix endian booboos for the !HAVE_GETADDRINFO case -
905 we build and run successfully on DU.
906
907 1999-05-10 Mikolaj J. Habryn <[email protected]>
908
909 * bytecode.c (run_bytecode): made OP_BRANCH branch unconditionally
910
911 * grammar.y: handle banner directive, don't OP_FORK unless an
912 OP_EXEC is forthcoming, allow no exec directive, default to just
913 OP_CLOSE to terminate
914
915 * engine.c: fix a heap of boundary conditions for fd hooking
916 functions
917
918 * lex.l: dummy invocation of yyunput to silence gcc
919
920 * libdb.c: rewrote maptab_add to just take a path
921
922 * bytecode.c (run_bytecode): wrote OP_ZERO to clear register
923 (run_bytecode): wrote OP_BANNER
924
925 1999-05-09 Mikolaj J. Habryn <[email protected]>
926
927 * bytecode.c (run_bytecode): clear listening fds post fork in child
928
929 * engine.c: added fd clearing funcs
930
931 1999-05-07 Mikolaj J. Habryn <[email protected]>
932
933 * wrote read/write hook functions for fds
934
935 * bytecode.c (run_bytecode): operating on arrays of opcodes
936 directly, rather than struct oplists.
937
938 * rlinetd.h: cleaned up prototypes
939
940 * Makefile.am (DISTCLEANFILES): clean out inetd2rlinetd on distclean
941
942 1999-05-06 Mikolaj J. Habryn <[email protected]>
943
944 * strings.c: test for instantiated sockaddr before logging
945 information out of it.
946
947 * rlinetd.h: rl_service->backlog unused and unnecessary
948
949 * engine.c: likely bug with instance limits fixed, mallinfo stuff
950 conditional on mallinfo detected by autoconf
951
952 * bytecode.c (run_bytecode): moved peer sockaddr allocation to
953 OP_ACCEPT (what happens for UDP?)
954
955 * Makefile.am (installpaths.h): generate installpaths on the hop
956
957 1999-05-05 Mikolaj J. Habryn <[email protected]>
958
959 * bytecode.c (run_bytecode): OP_BRANCH conditional on a value, and
960 branching off to an oplisttab entry
961
962 * libdb.c: reuse entries in oplisttab
963
964 1999-05-02 Mikolaj J. Habryn <[email protected]>
965
966 * libdb.c: maptab helper functions written to support OP_BANNER
967
968 * port/port.h: drop in prototypes for missing functions
969
970 1999-05-04 Mikolaj J. Habryn <[email protected]>
971
972 * db.c: free sockaddr in inst on cleanup
973
974 * data.c: use oplisttabs to store oplists
975
976 * libdb.c: wrote oplisttab helper functions
977
978 1999-04-30 Mikolaj J. Habryn <[email protected]>
979
980 * grammar.y (dirent): use funky autoconf dirent detection macros
981
982 * configure.in (libcap): test for {v,}snprintf, emulate if necessary
983
984 * port/vsnprintf.c (vsnprintf): basic hack using vprintf
985
986 * port/snprintf.c: ditto
987
988 * configure.in: combined tests for tcp_wrappers include files and
989 lib, check for mode_t for nextstep
990
991 * grammar.y: error on rlimits missing from DU
992
993 1999-04-29 Mikolaj J. Habryn <[email protected]>
994
995 * bytecode.c (run_bytecode): wrote OP_CLOSE
996
997 1999-04-28 Mikolaj J. Habryn <[email protected]>
998
999 * data.h: prettied up prototypes
1000
1001 * data.c: wrapinfo helper functions written
1002
1003 * bytecode.c (run_bytecode): wrote OP_BRANCH. like, wow :)
1004
1005 * lex.l: adding keywords for finer control over tcp wrappers
1006
1007 1999-04-27 Mikolaj J. Habryn <[email protected]>
1008
1009 * connect.c (rl_connect): wrote rl_connect to do connections for
1010 relaying
1011
1012 1999-04-25 Mikolaj J. Habryn <[email protected]>
1013
1014 * strings.c: more ipv6 conditionals
1015
1016 * grammar.y: check for gai_strerror with autoconf
1017
1018 1999-04-23 Mikolaj J. Habryn <[email protected]>
1019
1020 * Makefile.am: fixed bug in automake - dist target now works
1021
1022 * data.c: moved various handler functions out of grammar.y
1023
1024 * grammar.y: fallback through inet_pton to inet_addr if
1025 getaddrinfo not available.
1026
1027 1999-04-22 Mikolaj J. Habryn <[email protected]>
1028
1029 * grammar.y: fixed a memory leak in glibc's getaddrinfo, ripped
1030 out all of the _r functions - completely unnecessary, don't know
1031 what I was thinking, forget my head if it wasn't screwed on. moved
1032 all getaddrinfo(3) specific stuff inside an ifdef.
1033
1034 * engine.c: use vsyslog where available
1035
1036 * strings.c: use inet_ntop where possible
1037
1038 * engine.c: wrote varargs versions of logging functions
1039
1040 1999-04-21 Mikolaj J. Habryn <[email protected]>
1041
1042 * data.c: fixed memory leak in stringlist_free
1043
1044 * grammar.y: don't double free chroot (Mark Cooke)
1045
1046 * libdb.c: test exec before freeing (Mark Cooke)
1047
1048 1999-04-08 Mikolaj J. Habryn <[email protected]>
1049
1050 * grammar.y: found that last pesky memory leak :)
1051
1052 * libdb.c: extract exec strings from stringtab
1053
1054 * grammar.y: clean up memory leak with initgroups
1055
1056 1999-04-07 Mikolaj J. Habryn <[email protected]>
1057
1058 * libdb.c: add stringtable
1059
1060 * Makefile.am (rlinetd_LDADD): only add detected libraries to
1061 rlinetd specific link statement.
1062
1063 * configure.in (libcap): test for sockaddr_in6 with added paranoia.
1064
1065 1999-03-31 Mikolaj J. Habryn <[email protected]>
1066
1067 * inetd2rlinetd.in: substitute in path to perl
1068
1069 * configure.in: locate perl, check for alloca(3)
1070
1071 1999-03-30 Mikolaj J. Habryn <[email protected]>
1072
1073 * rlinetd.conf.5 (Example): documented family and initgroups
1074 directives.
1075
1076 * libdb.c: add handling functions for initgroup data
1077
1078 * main.c (main): kill supplementary groups on startup
1079
1080 * grammar.y: using alloca instead of malloc/free for *_r wrappers,
1081 moved user lookups into a single function and structure, addend
1082 missing end*ent() calls, changed sentinel value for uids and gids
1083 in parser to -1, use get{pw,gr}nam_r where available
1084
1085 1999-03-29 Mikolaj J. Habryn <[email protected]>
1086
1087 * grammar.y: added initgroups directive, read primary group id and
1088 use it where possible.
1089
1090 * main.c (main): fixed another missing / in path problem
1091
1092 1999-03-26 Mikolaj J. Habryn <[email protected]>
1093
1094 * Makefile.am (CFLAGS): export sysconfdir and pkglibdir separately
1095 via CFLAGS
1096
1097 * grammar.y: bugfix for directory loading (James H. Cloos)
1098
1099 * engine.c: add bounds to all messing with fd_sets.
1100
1101 1999-03-23 Mikolaj J. Habryn <[email protected]>
1102
1103 * grammar.y: don't delete caps in cleanup.
1104
1105 * libdb.c: reset capability storage correctly.
1106
1107 * bytecode.c: check tcpd.h exists before including it... should
1108 probably make sure that both library and header files exist before
1109 using them, for tcpwrappers and libcap.
1110
1111 * rlinetd.conf.5 (Example): fixed typo in rlimit example and added
1112 capability documentation.
1113
1114 * grammar.y: merged various opcode chains together, imposed
1115 stricter ordering for capabilities.
1116
1117 1999-03-22 Mikolaj J. Habryn <[email protected]>
1118
1119 * signals.c: test for null pointer after reload
1120
1121 * libdb.c: capabilities implemented
1122
1123 1999-03-17 Mikolaj J. Habryn <[email protected]>
1124
1125 * bytecode.c (run_bytecode): no need to SETFD on sockets - either
1126 done in OP_ACCEPT, or not relevant
1127
1128 * grammar.y: allow fallback to get{serv,rpc}byname if lacking *_r,
1129 error on 'tcpd' if no libwrap support. don't SETFD on udp sockets.
1130
1131 * Makefile.am: autoconf/automake/libtool.
1132
1133 * THANKS: libc5 patch from [email protected]
1134
1135 * lex.l: renamed from parse.l
1136
1137 * grammar.y: renamed from parse.y
1138
1139 1999-03-13 Mikolaj J. Habryn <[email protected]>
1140
1141 * rlinetd.conf.5: documented rpc config syntax
1142
1143 * bytecode.c (run_bytecode): tcp_wrappers support - OP_WRAP.
1144
1145 * parse.y (service_element): chroot is a restrictive directive,
1146 methinks.
1147
1148 1999-03-11 Mikolaj J. Habryn <[email protected]>
1149
1150 * version 0.2 released
1151
1152 * engine.c: fixed SEGV-if-two-reqs
1153
1154 * parse.y: only do NDELAY on stream sockets
1155
1156 * Makefile (CFLAGS): pass INSTALLPATH around, and use it for
1157 default filenames
1158
1159 * parse.y: allow port to default to service name
1160
1161 * data.c: wrote stringlists
1162
1163 * parse.y: moved port lookups into validation stage.
1164
1165 1999-03-10 Mikolaj J. Habryn <[email protected]>
1166
1167 * inetd2rlinetd: handle rpc services and uid.gid specs.
1168
1169 * data.c: extracting various data manipulation routines from
1170 parse.y (it's just tooooo big).
1171
1172 * removed README.conf, supplanted by rlinetd.conf(5)
1173
1174 * cleanups.c (rlp_cleanup): cleanup functions for reloading
1175 configurations
1176
1177 * parse.y (numrange): wrote numrangelists for rpc version
1178 numbers. also wrote rpc directive parsing.
1179
1180 * rlinetd.conf.5: documented %x modifiers
1181
1182 1999-03-09 Mikolaj J. Habryn <[email protected]>
1183
1184 * parse.y: spiff up error reporting, track string protocol for
1185 later use in getservbyname_r, allow multiple directory directives,
1186 abstract out validation checking for services.
1187
1188 * libdb.c: spiff up error reporting
1189
1190 * engine.c: ditto
1191
1192 * bytecode.c (rl_fail1): ditto
1193
1194 * rlinetd.h (rl_fatal): wrote varargs macros for rl_{warn,fatal}
1195
1196 * inetd2rlinetd: handle argv0 fudging
1197
1198 * rlinetd.conf.5 (Example): added documentation for directory
1199 directive.
1200
1201 * parse.y: recognize and handle directory directive.
1202
1203 * inetd2rlinetd.1: created.
1204
1205 * inetd2rlinetd: renamed from inetd2rlinetd.pl
1206
1207 1999-03-08 Mikolaj J. Habryn <[email protected]>
1208
1209 * rlinetd.conf.5 (Example): phew. documented all the directives.
1210
1211 * README.inetd: inetd compatibility notes
1212
1213 * debian/rules (binary-arch): do dh_install{init,manpages}
1214
1215 * rlinetd.1: wrote my very first man page. Gosh.
1216
1217 1999-03-05 Mikolaj J. Habryn <[email protected]>
1218
1219 * parse.y: use getservbyname_r to avoid memory leaks
1220
1221 * parse.l: add function to free flex buffers
1222
1223 * libdb.c: free more things
1224
1225 * Makefile: removed conditional static loading
1226
1227 * parse.y (service_element): accept server directive
1228
1229 * libdb.c: accept exec path separate to argv
1230
1231 * bytecode.c (run_bytecode): trimmed out error handling before
1232 exec - we're post fork and pretty well committed at this
1233 stage. also handle argv[0] != exec cases (tcpd)
1234
1235 * inetd2rlinetd.pl: write quick'n'dirty converter from inetd.conf
1236 to rlinetd.conf
1237
1238 * parse.y: fixed up service support routines to handle the new
1239 additions to opcodes
1240 (portlist): allow a service name as a port entry
1241
1242 * rlinetd.h: added length field to rl_instance for multiproto
1243 support.
1244
1245 1999-03-04 Mikolaj J. Habryn <[email protected]>
1246
1247 * engine.c: moved bulk of instance startup into bytecodes.
1248
1249 * bytecode.c (run_bytecode): added OP_ACCEPT and OP_FORK, moved
1250 std stream manipulation into OP_EXEC
1251
1252 * parse.y: set close-on-exec for listening sockets
1253
1254 * engine.c: add new sockets out of rls_pending before calling
1255 select(2)
1256
1257 * signals.c: set up a pending fd_set manipulated by signal handler
1258 keeping sockets which can now accept further connections due to
1259 previous instances exiting
1260
1261 * parse.y: copy defaults onto initial service template, use
1262 protocol setting in service template, track sockets belonging to
1263 service
1264
1265 vim:ai:tw=78:ts=8