audit-manager: enable logging.audit by default when libaudit support is available
authorThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 11:11:36 +0000 (13:11 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 11:44:55 +0000 (13:44 +0200)
commitc4c0bbb28c9c75d14e2a03d713723afb8d395ccb
tree10b1a4f41a4614f6f220ca16f304a5e4757ad738
parent1bebb918600374d4d2be2f53fb3fc62b5ea6e098
audit-manager: enable logging.audit by default when libaudit support is available

Previously, when compiling NetworkManager with libaudit support, it
was disabled by default and only used after setting logging.audit=true.

Turn that around. If we compile NetworkManager with audit support, we also
enable it by default. The user can then explicitly disable it by
configuring logging.audit in NetworkManager.conf.

But also, add a configure option 'yes-disabled-by-default' to compile
with audit support, but have it disabled by default. This would be the
previous behavior, but it must be enabled explicitly.

Fixes: be49a59fb649d7383b456403deb323a2eb9dab4b
configure.ac
man/NetworkManager.conf.xml.in
src/nm-audit-manager.c