36 Commits

Author SHA1 Message Date
Rainer Gerhards
fae8f451ab Merge branch 'v3-stable' into beta
Conflicts:
	runtime/rsyslog.h
2008-11-29 08:02:37 +01:00
Rainer Gerhards
f0ddbed44c security bugfix: $AllowedSender was not honored,
...all senders were permitted instead
2008-11-29 07:22:48 +01:00
Rainer Gerhards
f0732cb75b Merge branch 'beta' 2008-09-22 15:50:03 +02:00
Rainer Gerhards
1b2270ad3a Merge branch 'v3-stable' into beta
Conflicts:

	ChangeLog
	configure.ac
	doc/manual.html
2008-09-22 15:49:54 +02:00
Rainer Gerhards
571c51fe34 bugfix: imudp input module could cause segfault on HUP
It did not properly de-init a variable acting as a linked list head.
That resulted in trying to access freed memory blocks after the HUP.
2008-09-22 15:47:58 +02:00
Rainer Gerhards
262f61d869 added properties "inputname" and "$myhostname"
- added message property "inputname", which contains the name of the
  input (module) that generated it. Presence is depending on suport in
  each input module (else it is blank).
- added system property "$myhostname", which contains the name of the
  local host as it knows itself.
2008-09-10 15:59:53 +02:00
Rainer Gerhards
1a9ac0ced7 removed compile time fixed message size limit (was 2K)
The limit can now be set via $MaxMessageSize global config
directive (finally gotten rid of MAXLINE ;))
2008-09-02 11:38:31 +02:00
Rainer Gerhards
3f6c73a8b7 added (internal) error codes to error messages
Also added redirector to web description of error codes
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
2008-06-27 12:52:45 +02:00
Rainer Gerhards
09afe64f29 added fromhost-ip properties and some bugfixes
- bugfix: TCP input modules did incorrectly set fromhost property
  (always blank)
- bugfix: imklog did not set fromhost property
- added "fromhost-ip" property
- added "RSYSLOG_DebugFormat" canned template
- bugfix: hostname and fromhost were swapped when a persisted message
  (in queued mode) was read in
2008-05-16 13:36:41 +02:00
Rainer Gerhards
e0a2745d3f some cleanup (gotten rid of some more plain chars) 2008-05-06 15:05:39 +02:00
Rainer Gerhards
911101ed26 moved "option_DisallowWarning" variable to global data pool 2008-04-17 09:54:10 +02:00
Rainer Gerhards
d9b0c77d3e some more cleanup
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +02:00
Rainer Gerhards
13c32d03f3 added flow control options to other input sources 2008-03-19 07:50:47 +00:00
Rainer Gerhards
e946e122d0 implemented module unload handling (required a number of interface changes) 2008-03-11 16:43:13 +00:00
Rainer Gerhards
4db62823e7 renamed library module file names to lm*, so that they match the overall
scheme (like im* and om*)
2008-03-07 17:26:58 +00:00
Rainer Gerhards
fa67273c16 - added RSYSLOGD_MODDIR environment variable
- added -M rsyslogd option (allows to specify module directory location)
- converted net.c into a loadable library plugin
2008-03-07 08:06:16 +00:00
Rainer Gerhards
dfb2142974 added capability to ignore client-provided timestamp on unix sockets and
made this mode the default; this was needed, as some programs (e.g.
    sshd) log with inconsistent timezone information, what messes up the
    local logs (which by default don't even contain time zone information).
    This seems to be consistent with what sysklogd did for the past four
    years. Alternate behaviour may be desirable if gateway-like processes
    send messages via the local log slot - in this case, it can be enabled
    via the $InputUnixListenSocketIgnoreMsgTimestamp and
    $SystemLogSocketIgnoreMsgTimestamp config directives
2008-03-06 13:55:04 +00:00
Rainer Gerhards
24b02dc831 - extracted logerror*() family of functions from syslogd, made them their
own class and converted to new object calling conventions
    (interface-based)
- converted gss-misc into a loadable library module
2008-03-05 14:53:25 +00:00
Rainer Gerhards
545346e697 - changed modules.c calling conventions to be interface-based
- moved module loader from conf.c to module.c, where it belongs
- made the necessary plumbing to auto-load library modules
- upgraded debug system to include iRet in function exit message
- changed module interface so that instances need only to be supported by
    output plugins (if we actually need them for input plugins, we can
    always add it again...)
- milestone: first implementation of library modules (but do not get
    unloaded on exit/hup so far)
2008-03-05 10:30:06 +00:00
Rainer Gerhards
bc7d8ccebb - changed module interface to support querying obj interface (stage work)
- changed module interface version, as the interface change is quite large
2008-03-04 10:27:45 +00:00
Rainer Gerhards
14df0c7c57 bugfix: default port was not used on $UDPServerRun when none was specified
- http://bugzilla.adiscon.com/show_bug.cgi?id=6
2008-02-18 10:14:34 +00:00
Rainer Gerhards
37dc510188 - changed interface "printchopped()" so that it looks more like a generic
message submission interface. Part of the ongoing modularization
    effort.
- bugfix: invalid kernel log format -- see bug
    http://bugzilla.adiscon.com/show_bug.cgi?id=1
2008-02-18 08:03:10 +00:00
Rainer Gerhards
4becae174a - fixed a bug that could cause invalid string handling via strerror_r
varmojfekoj provided the patch - many thanks!
- adopted varmojfekoj's patch to v3, some more sterror_r's ;)
2008-01-30 13:54:20 +00:00
Rainer Gerhards
8b73362a4a - improved debug support a bit (assertions)
- restructured code, moved some part out of syslogd.c to action.c, where
    they belong (still some more to do in that regard ;))
2008-01-29 08:35:26 +00:00
Rainer Gerhards
28c44e9a7b - fixed a bug that caused a segfault on startup when no $WorkDir directive
was specified in rsyslog.conf
- fixed a bug that caused a segfault on queues with types other than "disk"
- removed the now longer needed thread TermSyncTool
2008-01-10 14:27:26 +00:00
Rainer Gerhards
c44de2807a fixed some memory leaks in new code -- thanks to varmojfekoj for the patch 2008-01-08 08:12:44 +00:00
Rainer Gerhards
cebbf6d44e some cleanup 2007-12-27 14:29:09 +00:00
Rainer Gerhards
6388928e69 added capability to have multiple UDP listeners running concurrently 2007-12-27 11:22:48 +00:00
Rainer Gerhards
c64dfc959a added $UDPServerAddress <ip> config directive 2007-12-27 10:23:44 +00:00
Rainer Gerhards
b38049e29c removed no longer needed reference to "AcceptRemote" 2007-12-26 18:05:14 +00:00
Rainer Gerhards
f1dceed0fe removed global variable LogPort 2007-12-26 17:54:54 +00:00
Rainer Gerhards
94af628fbd removed active INET code from syslogd.c - still some auxiliary things
remain
2007-12-26 17:21:02 +00:00
Rainer Gerhards
3eff8e5404 removed imudp code dependency on "finet" 2007-12-26 17:09:46 +00:00
Rainer Gerhards
2c8eae6a0c moved some of the udp input code to its right place 2007-12-25 16:04:46 +00:00
Rainer Gerhards
fe6b6de303 - created an initial version of imudp.c. The majority of UDP reception code
is now in that module and it is dynamically loadable. HOWEVER, that
    doesn't mean it is a proper module. There are still many, many
    dependencies on global variables, cross-module calls and such. However,
    havin the code base separated allows me to carry out some other cleanup
    before I return to create a really clean implementation of these
    modules. So it is kind of a stage work. Just don't mistake it with "the
    real thing"...
2007-12-21 16:15:20 +00:00
Rainer Gerhards
e747f766c6 prepared for imudp 2007-12-21 15:51:59 +00:00