1637 Commits

Author SHA1 Message Date
Rainer Gerhards
21bea2e1df added forgotten file 2008-04-24 20:52:02 +02:00
Rainer Gerhards
4b05bef636 Merge branch 'sock-abstract' into tls
Conflicts:

	runtime/Makefile.am
	runtime/netstrm.c
	runtime/nsd.h
	runtime/nsd_ptcp.c
	runtime/rsyslog.h
2008-04-24 17:43:45 +02:00
varmojfekoj
77b1cdf743 -c option no longer must be the first option
Thanks to varmjofekoj for the patch

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2008-04-24 14:29:11 +02:00
Rainer Gerhards
1892fc75f9 added new netstrms class
netstrms is at the top layer of the socket abstraction
2008-04-23 15:07:19 +02:00
Rainer Gerhards
032b9c1f64 Merge branch 'master' into tls 2008-04-18 14:38:17 +02:00
Rainer Gerhards
08a4fc4ae5 bugfix: a recent change effectively disabled error messages 2008-04-18 14:35:27 +02:00
Rainer Gerhards
1daf8d492f converted netstrm into generic netstrm and the nsd_pctp driver 2008-04-18 11:40:15 +02:00
Rainer Gerhards
ea4a3a3cd9 improvements in omfwd and cleanup of omgssapi
- some (small) cleanup of omgssapi
- optimized omfwed, now loads TCP code only if this is actually necessary
2008-04-17 19:03:51 +02:00
Rainer Gerhards
f590c1d52a modified omfwd to work with netstrm (and also did some cleanup) 2008-04-17 18:06:06 +02:00
Rainer Gerhards
60309004df completed better modularity of runtime
- added the ability to specify an error log function for the
  runtime
- removed dependency of core runtime on dirty.h

Note that it is "better" modularity, not perfect. There is still
work to do, but I think we can for the time being proceed with
other things.
2008-04-17 12:46:57 +02:00
Rainer Gerhards
e5130affc0 moved "glblModPath" variable inside global data pool
(but still as a variable, not part of glbl object)
2008-04-17 11:17:15 +02:00
Rainer Gerhards
e1791996b8 moved host/domain-name related variables to global data pool 2008-04-17 10:58:30 +02:00
Rainer Gerhards
4824e56aed moved "DisableDNS" variable to global data pool 2008-04-17 10:11:29 +02:00
Rainer Gerhards
911101ed26 moved "option_DisallowWarning" variable to global data pool 2008-04-17 09:54:10 +02:00
Rainer Gerhards
e16a207726 moved "bDropMalPTRMsgs" variable to global data pool 2008-04-17 09:40:41 +02:00
Rainer Gerhards
8c65706d22 moved "family" variable to global data pool 2008-04-17 09:25:03 +02:00
Rainer Gerhards
87c936ab65 modularization work
cleanup + created an abstract class for global data
items and moved glblGetWorkDir to it
2008-04-17 09:07:12 +02:00
Rainer Gerhards
bf3e0d4f22 prevented segfault during runtime library init phase 2008-04-16 18:01:26 +02:00
Rainer Gerhards
d071de5784 removed no longer needed things
... and some more cleanup. Also moved a file that I forgot
(thanks to Michael Biebl for pointing that out).
2008-04-16 15:45:13 +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
31344728fe bufgix: $PreserveFQDN was not properly handled for locally emitted messages 2008-12-20 12:56:41 +01:00
Rainer Gerhards
ee79ff3214 Merge branch 'beta' 2008-12-10 15:29:15 +01:00
Rainer Gerhards
dc478db1ca added ability to drop privileges
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
2008-11-26 14:17:36 +01:00
Rainer Gerhards
57c9a3acce exprimental implementaiton of $PrivDropToUser directive
... 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.
2008-11-19 13:20:31 +01:00
Rainer Gerhards
599133164d Merge branch 'beta'
Conflicts:

	ChangeLog
	configure.ac
	doc/manual.html
	doc/property_replacer.html
2008-11-18 12:05:51 +01:00
Rainer Gerhards
6334d335d8 added configuration directive "HUPisRestart"
...which enables to configure HUP to be either a full restart
or "just" a leightweight way to close open files
2008-10-23 14:46:47 +02:00
Rainer Gerhards
b6f496f861 Merge branch 'master' into nextmaster
Conflicts:

	ChangeLog
	configure.ac
2008-10-22 11:07:21 +02:00
Rainer Gerhards
6c6e9a0f3f moved bParseHostname and bIsParsed to msgFlags
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.
2008-10-09 13:45:56 +02:00
Rainer Gerhards
5742f9cdd0 fixing segfault caused by all inputs but imudp 2008-10-09 07:48:22 +02:00
Rainer Gerhards
ace4f2f752 reordered imudp processing.
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.
2008-10-08 18:55:11 +02:00
Rainer Gerhards
8528344ef5 "output" timestamp now taken from mesg's time generated
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.
2008-10-07 14:26:41 +02:00
Rainer Gerhards
65f74a712b added $UDPServerTimeRequery option
...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)
2008-10-06 14:25:23 +02:00
Rainer Gerhards
b849df2004 Merge branch 'master' into perf
Conflicts:

	ChangeLog
2008-10-06 12:07:53 +02:00
Rainer Gerhards
96f312f94f Merge branch 'helgrind' into perf
Conflicts:

	runtime/debug.c
2008-09-26 16:22:15 +02:00
Rainer Gerhards
b005a1dcf8 added a small diag tool to generate local log messages quickly
... I think it may be useful to extend this later, thus I move it
into git.
2008-09-18 17:16:17 +02:00
Rainer Gerhards
9d8bb5629b Merge branch 'helgrind' into perf
Conflicts:

	ChangeLog
2008-09-18 12:45:44 +02:00
Rainer Gerhards
7b63cd6fed minor things, mostly improved debug info 2008-09-18 12:44:00 +02:00