summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | Merge branch 'beta'Rainer Gerhards2009-01-301-0/+5
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge branch 'beta'Rainer Gerhards2009-01-301-1/+1
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge branch 'drd-testing'Rainer Gerhards2009-01-291-0/+1
| |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | bugfix: unitialized mutex was used in msg.c:getPRIRainer Gerhards2009-01-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was subtle, because getPRI is called as part of the debugging code (always executed) in syslogd.c:logmsg.
| * | | | | | | | | | | Merge branch 'beta'Rainer Gerhards2009-01-273-29/+36
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tools/omfile.c
| * | | | | | | | | | | bufgix: $PreserveFQDN was not properly handled for locally emitted messagesRainer Gerhards2008-12-201-1/+4
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch 'beta'Rainer Gerhards2008-12-101-3/+4
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | added ability to drop privilegesRainer Gerhards2008-11-261-3/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $PrivDropToGroup, $PrivDropToUser, $PrivDropToGroupID, $PrivDropToUserID config directives to enable dropping privileges. This is an effort to provide a security enhancement. For the limits of this approach, see http://wiki.rsyslog.com/index.php/Security
| * | | | | | | | | | | | exprimental implementaiton of $PrivDropToUser directiveRainer Gerhards2008-11-191-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... which permits to drop root privileges. This is not a completely secure way of dropping permissions, e.g. the group permissions need to be dropped, too. Also, there are several vulnerability Windows (see code comments). Finally, at least the imklog module on linux does not work when privileges are dropped. This code may still be a valuable addition, and so I have created an experimental branch so that people can check it out.
| * | | | | | | | | | | | Merge branch 'beta'Rainer Gerhards2008-11-181-0/+72
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/property_replacer.html
| * | | | | | | | | | | | | added configuration directive "HUPisRestart"Rainer Gerhards2008-10-232-47/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...which enables to configure HUP to be either a full restart or "just" a leightweight way to close open files
| * | | | | | | | | | | | | Merge branch 'master' into nextmasterRainer Gerhards2008-10-222-0/+10
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac
| * | | | | | | | | | | | | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
| * | | | | | | | | | | | | | fixing segfault caused by all inputs but imudpRainer Gerhards2008-10-091-1/+2
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | reordered imudp processing.Rainer Gerhards2008-10-081-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Message parsing is now done as part of main message queue worker processing (was part of the input thread) This should also improve performance, as potentially more work is done in parallel.
| * | | | | | | | | | | | | | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
| * | | | | | | | | | | | | | added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
| * | | | | | | | | | | | | | Merge branch 'master' into perfRainer Gerhards2008-10-061-3/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-2/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/debug.c
| * | | | | | | | | | | | | | | | added a small diag tool to generate local log messages quicklyRainer Gerhards2008-09-182-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... I think it may be useful to extend this later, thus I move it into git.
| * | | | | | | | | | | | | | | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-181-4/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | | | | | | | | | | | | | | | | minor things, mostly improved debug infoRainer Gerhards2008-09-181-5/+3
| | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | changed imudp so that it supports sender spoofing.David Lang2009-07-081-10/+100
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch disables non-spoofed mode, it is primarily a code contribution to facilitate building a full-blown, configurable spoofing capabity. But obviously it can also be used in cases where only spoofing is desired. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | | | | | | | | | | | | | minor doc bugfix: name of rsyslogd.pid corrected (was syslogd.pid)Michael Biebl2009-06-241-2/+2
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | | | | | | | | | | | | some minor bugfixesRainer Gerhards2009-06-183-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - bugfix: invalid error message issued if $inlcudeConfig was on an empty set of files (e.g. *.conf, where none such files existed) thanks to Michael Biebl for reporting this bug - bugfix: when run in foreground (but not in debug mode), a debug message ("DoDie called") was emitted at shutdown. Removed. thanks to Michael Biebl for reporting this bug - bugfix: some garbagge was emitted to stderr on shutdown. This garbage consisted of file names, which were written during startup (key point: not a pointer error) thanks to Michael Biebl for reporting this bug - bugfix: startup and shutdown message were emitted to stdout thanks to Michael Biebl for reporting this bug
* | | | | | | | | | | | | | | | removed forgotten debug messageRainer Gerhards2009-06-151-1/+0
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | bugfix: error messages were not emitted to stderr in forked modeRainer Gerhards2009-06-151-2/+5
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stderr and stdo are now kept open across fork()
* | | | | | | | | | | | | | | fixed a regression of yesterday's patchRainer Gerhards2009-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... I know I should not have done this to a stable branch... Thankfully nothing was yet released.
* | | | | | | | | | | | | | | fixed copy&paste error in previous commitRainer Gerhards2009-05-291-1/+1
| |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (testcase was only present in v4, so I did not spot the issue immediately)
* | | | | | | | | | | | | | fixed problem in syslog-protocol (now RFC5424) parserRainer Gerhards2009-05-291-15/+20
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as well as some other minor issues.
* | | | | | | | | | | | | small enhancement: config validation run now exits with code 1 if an error ↵Rainer Gerhards2009-05-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is detected. This change is considered important but small enough to apply it directly to the stable version. [But it is a border case, the change requires more code than I had hoped. Thus I have NOT tried to actually catch all cases, this is left for the current devel releases, if necessary]
* | | | | | | | | | | | | bugfix: internal messages were emitted to whatever file had fd2varmojfekoj2009-05-281-1/+1
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...when rsyslogd ran in forked mode (as usual!) Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | | | | | | | | Merge branch 'v3-stable' into betaRainer Gerhards2009-04-161-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | | | | | | | | | | Merge branch 'debian_lenny' into v3-stableRainer Gerhards2009-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
* | | | | | | | | | | | make all cflags and libs variables uppercaseMichael Biebl2009-02-241-2/+2
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pkg-config uses uppercase for its _CFLAGS and _LIBS variable names. So we follow suit and convert all _cflags and _libs variables to uppercase for more consistency.
* | | | | | | | | | | added info if atomic ops are available to rsyslogd -v outputRainer Gerhards2009-01-301-0/+5
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | |
* | | | | | | | | | Merge branch 'v3-stable' into beta, conclude fix for raceRainer Gerhards2009-01-301-1/+1
|\| | | | | | | | | | |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| * | | | | | | | bugfix: invalid mutex access in msg.cRainer Gerhards2009-01-301-1/+1
| | | | | | | | |
* | | | | | | | | Merge branch 'v3-stable' into betaRainer Gerhards2009-01-272-28/+32
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | | | | | | | Merge branch 'debian_lenny' into v3-stableRainer Gerhards2008-12-182-28/+32
| | | | | | | | |
| * | | | | | | | Merge branch 'debian_lenny' into v3-stableRainer Gerhards2008-12-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html net.h plugins/imtcp/imtcp.c plugins/imudp/imudp.c runtime/net.c runtime/rsyslog.h tcps_sess.c tcpsrv.c
* | | | | | | | | bugfix: the string "Do Die" was accidently emited upon exit in non-debug modevarmojfekoj2009-01-151-2/+4
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | | | | some legacy options were not correctly processedvarmojfekoj2008-12-101-3/+4
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | | | Merge branch 'v3-stable' into betaRainer Gerhards2008-11-111-0/+72
|\| | | | | | | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog doc/manual.html
| * | | | | added small regex check tool to repositoryRainer Gerhards2008-11-111-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is intended for debugging and considered worth preserving. However, it has not (yet) been added to the build diag tools as it is not considered important enough.
* | | | | | Merge branch 'beta'Rainer Gerhards2008-10-161-0/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | | | | clarified cost and effect of SIGHUPv3.19.12Rainer Gerhards2008-10-161-0/+8
| | | | | |
* | | | | | Merge branch 'beta'Rainer Gerhards2008-10-091-0/+2
|\| | | | | | |_|_|_|/ |/| | | |
| * | | | Merge branch 'v3-stable' into betaRainer Gerhards2008-10-091-0/+2
| | | | |
* | | | | consolidated time calls during msg object creationRainer Gerhards2008-10-021-3/+0
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | ...this improves performance and consistency and also fixes a bug where subsecond time properties generated by imfile, imklog and internal messages could be slightly inconsistent.