2001-10-19 Balazs Scheidler <bazsi@balabit.balabit> * configure.in: 1.4.14 * src/afunix.c: fixed "lost afunix sources" problem, it was caused by a bogus find_persistent_info lookup (missing _stream_) 2001-08-14 Balazs Scheidler <bazsi@balabit.balabit> * configure.in: bumped version to 1.4.13 * src/afstreams.c: fixed syntax error on Solaris 2001-07-11 Balazs Scheidler <bazsi@balabit.balabit> * configure.in: bumped version to 1.4.12, require libol 0.2.23 * src/affile.c: added new macro WEEKDAY * src/*.c: adapted to a changed function prototype in libol, thus we require 0.2.23 now. 2001-06-11 Balazs Scheidler <bazsi@balabit.hu> * src/log.c (parse_log_msg): fixed year recognition logic as reported by dj@gregor.com 2001-05-16 Balazs Scheidler <bazsi@balabit.hu> * src/main.c: changed go_background() to set SIGTERM handler prior to forking 2001-02-25 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.11, require libol 0.2.21 * src/main.c: fixed SIGHUP handling bug 2000-11-27 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.10 * reverted HP-UX workaround 2000-11-22 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.9 * src/sources.c (do_handle_line): removed HP-UX workaround, because it breaks other platforms * src/log.c (parse_log_msg): if a line was broken within the priority specifier, it could cause a SIGSEGV. A DoS is possible, other exploitation is not. 2000-11-03 Balazs Scheidler <bazsi@bzorp> * configure.in: bumped version number to 1.4.8 * src/affile.c (expand_macro): added macros $SEC for seconds, $MIN for minutes and $HOUR for hours (do_reap_affile_dest): fixed a memory leak wrt destination files (cfg->resources kept a reference to closed files) (make_affile_dest_reaper): added parameter struct syslog_config *cfg, which is needed by the fix above. (expand_macro): new parameter syslog_config, to implement use_time_recvd() value * doc/sgml/syslog-ng.sgml: added note about possible DoS attack, fixed some typos, updated to include information about the new features 2000-09-29 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.7, require libol 0.2.20 * src/center.c: increment refcount for messages going to the default log destination 2000-08-27 Balazs Scheidler <bazsi@balabit.hu> * src/log.c (parse_log_msg): filter characters below 32 and replace them with a dot, reported by: morty@sanctuary.arbutus.md.us 2000-08-22 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.6 * src/main.c (go_background): add \n to the end of pid file * src/afinet.c (do_afinet_destroy): add the socket type to the persistent config name 2000-07-31 Balazs Scheidler <bazsi@balabit.hu> * src/main.c: exit after processing the -V command line option 2000-06-05 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.5 2000-06-03 Balazs Scheidler <bazsi@balabit.hu> * src/main.c (main_loop): free all callouts before reinitializing configuration (some callouts may reference old configuration) * src/afinet.c (do_init_afinet_source), src/afunix.c (do_init_afunix_source): set owner of persistent connection to self to avoid referencing an old configuration, REMEMBER_RESOURCE the connecting fd * src/cfg-grammar.y: added support for dir_owner, dir_group option for destination file statements 2000-05-26 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version to 1.4.4 * updated documentation 2000-05-22 Balazs Scheidler <bazsi@balabit.hu> * configure.in: added check for stdarg.h 2000-05-21 Balazs Scheidler <bazsi@balabit.hu> * src/cfg-grammar.y: added permission options to pipe() 2000-04-12 Balazs Scheidler <bazsi@balabit.hu> * bumped version number to 1.4.3 * added test suite beginnings, test for evaluation 2000-04-05 Balazs Scheidler <bazsi@balabit.hu> * src/sources.c: check for 0 length lines 2000-03-24 Balazs Scheidler <bazsi@balabit.hu> * configure.in: added check for snprintf, vsnprintf * src/Makefile.am: snprintf.c added to EXTRA_DIST 2000-03-13 Balazs Scheidler <bazsi@balabit.hu> * cfg-grammar.y: added support for keep_hostname() * cfg-lex.l: -"- * sources.c (do_add_hostname): -"- 2000-03-10 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version number to 1.4.1 * src/sources.c: changed do_read_line to avoid as much memmove() as possible * src/cfg-lex.l: readded lex_init to restart flex on new files, requires GNU flex. * src/filters.c: fixed negation handling for 'or' and 'and', reported by lt@toetsch.at * src/main.c (main_loop): set restarting to 0, if a syntax error was encountered 2000-03-04 Balazs Scheidler <bazsi@balabit.hu> * src/affile.c: cleaned up pipe support, open pipes RW -> no need to handle closed pipes * forked 1.5.0 development tree 2000-03-03 Balazs Scheidler <bazsi@balabit.hu> * bumped version number to 1.4.0 * configure.in: fixed the check for I_CONSLOG, Sun STREAMS are now detected correctly * src/affile.c (do_init_affile_source): open pipes in RDWR mode so that they don't have to be closed after each message * src/cfg-grammar.y: fixed a bug again in priority range parsing 2000-02-29 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version number to 1.4.0rc4 * src/log.c (parse_log_msg): dereference the src pointer, (make_internal_message): set the stamp field to current date 2000-02-25 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version number to 1.4.0rc3 * src/filters.c (do_filter_pri): split this to two functions, priorities are filtered by 8 bits, where the bit position denotes the value of the priority (0-7), at facilities bit position denotes an index to the sl_facilities array, (do_filter_lev): new function, (do_filter_fac) new function * src/cfg-grammar.y: changed the way valid masks are composed for facility/priority filters, display warnings when a priority/facility is unknown, added possibility to select a facility code by number. * src/log.c (parse_log_msg): don't remove programname from the whole message, set programname to "kernel" when a message comes from LOG_KERN facility (needed for SunOS) * src/cfg-lex.l: IDENTIFIER regex fix. 2000-02-22 Balazs Scheidler <bazsi@balabit.hu> * configure.in: added test to grep for I_CONSLOG, if not defined sun-streams support is not compiled in * src/log.c (parse_log_msg): if no date is received on a logline parse the first word as programname 2000-02-21 Balazs Scheidler <bazsi@balabit.hu> * src/affile.c (expand_macro): rewritten to be less architecture specific, should compile on Alpha and PPC as well (expand_macros): -"- * src/syslog-ng.h: declare strcasecmp() if not defined by system headers * src/Makefile.am: add strcasecmp.c to the dist * src/cfg-lex.l: '..' is not taken part of the word 2000-02-18 Balazs Scheidler <bazsi@balabit.hu> * src/afunix.c (do_destroy_afunix_connection): changed close_fd to closekill_fd * src/afinet.c (do_destroy_afinet_connection): changed close_fd to closekill_fd * src/affile.c (do_open_file): check for spurious filenames (containing ../ or /..), fix for create_dirs 2000-02-17 Balazs Scheidler <bazsi@balabit.hu> * src/main.c (do_reread_config): give some time for marked fds to close before initializing new config (so we can bind to the same address) * src/afstreams.c (do_init_afstreams_source): added omitted parameter to close_fd * configure.in: added configure test for strcasecmp(), bumped version number to 1.3.16 * strcasecmp.c: new file taken from GNU libc * src/cfg-lex.l: removed option %noyywrap since it required GNU flex, commented out lex_init(), nothing uses it, and references GNU flexism. * src/cfgfile.c: reset linenum to 1 before reading a new config file 2000-02-15 Balazs Scheidler <bazsi@balabit.hu> * affile.c: added inclusion <sys/types.h> and <sys/stat.h> 2000-02-13 Balazs Scheidler <bazsi@balabit.hu> * src/main.c (main): added -V option to display version number * configure.in: bumped version number to 1.3.15 * src/cfg-grammar.y: added support for create_dirs() and dir_perm() * src/cfg-lex.l: added create_dirs and dir_perm keywords * src/affile.h: added AFFILE_CREATE_DIRS * src/affile.c (make_affile_dest): added dir_perm field, create_dirs flag (do_open_file): added the possibility to create directories on the fly * src/main.c (sig_child): waitpid() hang fix. 2000-02-04 Balazs Scheidler <bazsi@balabit.hu> * src/afinet.c (do_init_afinet_source_connection): don't use the returned address in recvfrom in SOCK_STREAM mode, required for 2.3.x kernels. * src/affile.c (expand_macro): fixed a bug in $LEVEL and $FACILITY (make_affile_dest): set default permission to 0600, instead of 0000 (ok. I've been paranoid :) 2000-01-17 Balazs Scheidler <bazsi@balabit.hu> * configure.in: added explicit --enable options for Sun STREAMS and Sun door support, require libol 0.2.13, bumped version number to 1.3.13 * src/affile.c (affile_set_owner, affile_set_group, affile_set_perm): new functions, allows setting created file permissions * src/afunix.c (do_init_afunix_source): look up owner and group at parse time, instead of open time 2000-01-04 Balazs Scheidler <bazsi@balabit.hu> * cfg-grammar.y: fixed a nasty bug in the parser * configure.in: bumped version number to 1.3.12 2000-01-03 Balazs Scheidler <bazsi@balabit.hu> * destinations.c, center.c: moved make_dest_reopen etc. from destinations to center.c, and generalized it a bit, to make it usable for source drivers. * affile.c: some pipe related fixes * configure.in: bumped version number to 1.3.11 1999-12-18 Balazs Scheidler <bazsi@balabit.hu> * affile.c: added AFFILE_NO_EXPAND flag, destinations having this flag are not reaped, and it's filename is not expanded. It's used with named pipes, and with filenames without macros. * cfg-grammar.y, cfg-lex.l: added gc_threshold option, added KW_PIPE token, and using pipe() results in the AFFILE_NO_EXPAND flag automatically added. * configure.in: bumped version number to 1.3.10 1999-12-17 Balazs Scheidler <bazsi@balabit.hu> * affile.c: fixed a bug in pipe() handling * configure.in: bumped version number to 1.3.9, required libol version changed to 0.2.10 1999-12-15 Balazs Scheidler <bazsi@balabit.hu> * main.c: added sig_child handler to reap children * configure.in: use make_class from libol dir, if --with-libol is used, bumped version number to 1.3.8 Tue Dec 14 16:53:43 1999 <bazsi@edge.tii.matav.hu> * src/sources.c (get_source_hostname): fixed use_dns handling * src/main.c: added O_TRUNC to pidfile opening, and changed open mode to 0600 from 0666. 1999-12-09 Balazs Scheidler <bazsi@balabit.hu> * src/afinet.c (do_open_afinet_source): fixed a bug with DGRAM socket initializtion * src/afunix.c (do_init_afunix_source): fixed the same bug with af_unix sockets * cfg-lex.l: long_hostnames() option renamed to chain_hostnames(), while keeping an alias for backward compatibility, two new options use_dns() and use_fqdn() * cfg-grammar.y: added support for new options * sources.c: added support for new options * configure.in: bumped version number 1999-12-03 Balazs Scheidler <bazsi@balabit.hu> * src/main.c (main_loop): restarting variable, to prevent processing of sighup while restart is in progress 1999-11-24 Balazs Scheidler <bazsi@balabit.hu> * src/afinet.c: fixed a bug in the UDP driver. * configure.in: bumped version number to 1.3.5 1999-11-23 Balazs Scheidler <bazsi@balabit.hu> * src/afunix.c, src/afinet.c, src/cfg-grammar.y, src/cfg-lex.l: added support for max_connections * configure.in: bumped version number to 1.3.4 1999-11-22 Balazs Scheidler <bazsi@balabit.hu> * src/afunix.c, src/afinet.c, src/afsocket.c: implemented keep-alive option, reorganization complete (phew ... ) 1999-11-20 Balazs Scheidler <bazsi@balabit.hu> * src/afunix.c: new file * src/afinet.c: new file * src/afsocket.c: completely reorganized, cleaned up 1999-11-18 Balazs Scheidler <bazsi@balabit.hu> * src/log.c: added include <string.h> for memcpy (parse_log_msg): tm.tm_isdst is initialized as -1 as suggested by <Goran.Lowkrantz@infologigruppen.se> 1999-11-17 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped version number * src/center.c (do_distribute_log): added DEFAULT log statement handling * src/cfgfile.c (do_init_config): added DEFAULT log statement handling * src/affile.c (expand_macro): fixed $HOST handling 1999-11-16 Balazs Scheidler <bazsi@balabit.hu> * src/afstreams.c: moved some things from the stable branch 1999-11-15 Balazs Scheidler <bazsi@balabit.hu> * src/filters.c: changed FILTER_EVAL to include a log_filter * param * doc/Makefile.am (EXTRA_DIST): added syslog-ng.conf.solaris 1999-11-01 Balazs Scheidler <bazsi@balabit.hu> * released 1.2.0 stable version (tagged syslog_ng_stable_1_2) * added macro expansion to destination filenames (1.3.x branch) * fixed a documentation bug pointed out by: drawa@suct.uu.ru 1999-09-02 Balazs Scheidler <bazsi@balabit.hu> * src/utils.c: added #include <netinet/in.h> and <sys/socket.h> to fix a compilation problem under FreeBSD * configure.in: fixed detection of modern utmp structure 1999-08-29 Balazs Scheidler <bazsi@balabit.hu> * src/afprogram.c, src/afprogram.h: new files, program destination 1999-08-07 Balazs Scheidler <bazsi@balabit.hu> * afuser.c: works on old utmp structures too (NetBSD) * configure.in: added test for modern utmp structure, bumped version number, changed required libol version to 0.2.3 * utils.c: fixed a bug in getutent() implementation * main.c: fixed a bug in SIGTERM handling, exit message is now displayed 1999-08-04 Balazs Scheidler <bazsi@balabit.hu> * utils.c: added getutent(), endutent() implementation * utils.h: added getutent() prototypes * configure.in: added check for getutent() * afstreams input driver cleaned up 1999-07-22 Balazs Scheidler <bazsi@balabit.hu> * added error checking to regcomp() * added shell like single quotation marks 1999-07-21 Balazs Scheidler <bazsi@balabit.hu> * bumped version number to 1.1.28 * cfgfile.c: fixed a bug in variable resolving * added BSD recvfrom fix 1999-07-18 Balazs Scheidler <bazsi@balabit.hu> * afinter.c: write_internal_message() added check for assigned_configuration 1999-07-10 Balazs Scheidler <bazsi@balabit.hu> * configure.in: bumped to version 1.1.27 aka 1.2.0rc1 * added pidfile support * configuration file reading checks whether the file exists. * added new sgml documentation. * formalized the config grammar, and added a lot of options (some of them are not used yet) * fixed a bug in afsocket_dest, which made syslog-ng exit if a given TCP port was not opened at startup. * adapted to the new libol version 1999-06-23 Balazs Scheidler <bazsi@balabit.hu> * moved affile_dest declaration from affile.h to affile.c, and changed the parser not to refer affile_dest directly, but through a wrapper function * Makefile.am: afdoor.{c,h} removed * removed afdoor.{c,h}, doors are not used for input according to a newsgroup post, code will be added to the sun-streams driver * cfg-grammar.y: everything can be specified using parenthesis 1999-06-15 Balazs Scheidler <bazsi@balabit.hu> * cfg-grammar.y: added support for sun-streams * cfg-lex.l: added keywords sun-stream & sun-streams * configure.in: added test for stropts.h (STREAMS) * added source files afstreams.{c,h} * afdoor uses a pipe to communicate with the main poll() loop 1999-06-10 Balazs Scheidler <bazsi@balabit.hu> * fixed a typo in center.c (pthread_mutex_lock instead of pthread_lock_mutex) 1999-06-08 Balazs Scheidler <bazsi@balabit.hu> * named pipes work now with the file driver (I may introduce a pipe driver later on, which could be an alias for "file") * fixed a bug in log_handler.destroy handling * changed -HUP handling, it reverts to the old config if the new cannot be initialized * changed afsocket_dest_reopen to be a general callback, capable of reinitializing any log_handler (and moved to destinations.c) * debian control file fixes (reported by Peter Gervai, grin@tolna.net) * internal source driver checks if used once * fixed a bug in syslog-ng.h, which used the config file in cwd even if debugging was turned off 1999-06-06 Balazs Scheidler <bazsi@balabit.hu> * added reference documentation to doc/syslog-ng.html * changed the parser, so IDENTIFIER's can always be quoted using quotation marks (") 1999-06-05 Balazs Scheidler <bazsi@balabit.hu> * added experimental Sun Door support * added some bits to the syslog-ng.conf manpage * added user targets 1999-05-29 Balazs Scheidler <bazsi@balabit.hu> * fixed a bug in -HUP handling 1999-05-28 Balazs Scheidler <bazsi@balabit.hu> * changed configure.in to link to static libol instead of dynamic one * added debian control files * adapted to new libol version 1999-05-25 Balazs Scheidler <bazsi@balabit.hu> * HP-UX log sources should work now * global and destination file specific sync() option added * -HUP doesn't lose data even if it is sync()-ed * adapted to new libol version 1999-05-06 Balazs Scheidler <bazsi@balabit.hu> * changed program filter to use regexps * added match filter * fixed a header bug in utils.h * added host filter 1999-05-05 Balazs Scheidler <bazsi@balabit.hu> * removed a reference to yydebug (cfgfile.c) 1999-05-04 Balazs Scheidler <bazsi@balabit.hu> * fixed a bug in the lexer (removed '.') from the check_reserved_words rule * fixed several memory leaks, syslog-ng now doesn't eat memory * if internal message source was not registered -> segfault * error messages during initialization was not written to stderr, since it was closed before any messages could go out 1999-05-03 Balazs Scheidler <bazsi@balabit.hu> * the inet_aton SunOS compatibility fix caused problems on Linux. Fixed. 1999-04-28 Balazs Scheidler <bazsi@balabit.hu> * some portability fixes for Solaris (added getopt.c, getopt1.c and getopt.h to the source distribution, inet_aton wrapper, socklen_t checking) 1999-04-26 Balazs Scheidler <bazsi@balabit.hu> * released 1.1.9 * implemented internal logsource, werror() and its peers generate internal messages * source name is added to the log message * host name is added to the log message 1999-04-20 Balazs Scheidler <bazsi@balabit.hu> * released 1.1.8 * implemented af_inet and af_unix destinations * some build fixes * changed dest_driver semantics, so a given line is allocated once, and referenced from multiple places 1999-04-11 Balazs Scheidler <bazsi@balabit.hu> * renamed afunix.{c,h} to afsocket.{c,h} and began udp support * added SIGHUP handling * released 1.1.6 * implemented priority & level filters as suggested by Richi Plana <richip@mozcom.com> * fixed a couple of build fixes 1999-04-10 Balazs Scheidler <bazsi@balabit.hu> * released 1.1.5 * implemented priority and facility filters, both parsing and evaluation * evaluation objects and other filter related stuff moved to filter.{c,h} * added syslog-names.{c.h} 1999-04-09 Balazs Scheidler <bazsi@balabit.hu> * cfgfile.c: added the skeleton of filter evaluation objects * released 1.1.3 * cfg-grammar.y: added the beginnings of filter rule parsing * Makefile.am: removed scsh dependency, so the tarball can be compiled without scsh installed 1999-04-08 Balazs Scheidler <bazsi@balabit.hu> * converted to new libol and removed old libol specific files (libol has now its own repository) * fixed a few bugs in parse_log_msg() 1999-03-25 Balazs Scheidler <bazsi@balabit.hu> * renamed line_buffer to pkt_buffer, since this better describes its functionality 1999-03-21 Balazs Scheidler <bazsi@balabit.hu> * moved abstract_buffer.h to abstract_io.h 1999-03-15 Balazs Scheidler <bazsi@balabit.hu> * fixed af_unix sock_stream mode. sock_dgram should work, but is not tested yet * released 1.1.1. 1999-02-26 Balazs Scheidler <bazsi@balabit.hu> * anonymous cvs server set up (syncs to local) 1999-02-10 Balazs Scheidler <bazsi@balabit.hu> * log_center implementation * syslog_conf class * parser should more or less work now 1999-02-09 Balazs Scheidler <bazsi@balabit.hu> * added object code from lsh * set up autoconf/automake build system * created the basis of log forwarding (log_handler_pipe) * released preview release 1.1 1999-01-15 Balazs Scheidler <bazsi@balabit.hu> * added some things to the grammar 1999-01-14 Balazs Scheidler <bazsi@balabit.hu> * cfg-grammar.y added the skeleton code which will create the configuration structure. * header files now define __headername instead of _headername