]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
ulogd: load all plugins by default
authorArturo Borrero Gonzalez <arturo@netfilter.org>
Mon, 2 Oct 2017 13:06:49 +0000 (15:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 21:00:31 +0000 (22:00 +0100)
commit8f0fff33137807838b39a4dfd01438d6b25f7175
tree11d394b6e5561f1bfb9e4cd4dc9ce16995628a00
parent10a85d467da4e045fbc754489dfcdd8c097ed44e
ulogd: load all plugins by default

This new configuration behaviour option eases a bit the configuration of ulogd2
by allowing to load all plugins in one go, without having to know their full
path.

Choosing concrete plugins and using full path for them is great for some
environmnets, but I don't think it's a common case. The common case is to
load all plugins, even ignoring where do they live in the filesystem.

Even worse, the full path may be architecture-dependant, which makes copying
the ulogd.conf file between machines unnecesarily complex.

To experiment this new behaviour, don't put any 'plugin=' directive in the
config file. Plugins will be loaded from a default directory, choosen at
build/configure time (--with-ulogd2libdir). If no specified, this is something
like '/usr/local/lib/ulogd/'.

This new configuration option doesn't implement any special logic. We simply
open the dir and try to load all files ending with '.so'.

The log message level for plugins loading is increased so users can see by
default which plugins are loaded.

Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac
src/ulogd.c
ulogd.conf.in