dbus/cmake
Simon McVittie 327a52e4eb bus: move shared libaudit code to a new audit.[ch]
This fixes various duplicated libaudit interactions in both
SELinux and AppArmor code paths, including opening two audit sockets
if both SELinux and AppArmor were enabled at compile time.
In particular, audit.c is now the only user of libcap-ng.

This commit is not intended to introduce any functional changes,
except for the de-duplication.

The actual audit_log_user_avc_message() call is still duplicated,
because the SELinux and AppArmor code paths use different mechanisms
to compose the audit message: the SELinux path uses a statically-sized
buffer on the stack which might be subject to truncation, whereas
the AppArmor path uses malloc() (via DBusString) and falls back to
using syslog on a memory allocation failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89225
Reviewed-by: Colin Walters <walters@verbum.org>
[smcv: minor issues raised during review are subsequently fixed]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2015-08-06 17:12:36 +01:00
..
bus bus: move shared libaudit code to a new audit.[ch] 2015-08-06 17:12:36 +01:00
dbus cmake: stop using deprecated LOCATION property (policy CMP0026) 2015-03-06 20:32:30 +01:00
doc Add dbus-update-activation-environment tool 2015-02-24 11:15:52 +00:00
modules cmake: @VAR@ substitutions in set() are deprecated, use string(CONFIGURE) instead (policy CMP0053) 2015-03-06 20:35:59 +01:00
test Add test-fdpass to cmake build system. 2015-03-04 18:43:54 +00:00
tools Actually commit cmake changes for dbus-launch 2015-02-24 11:42:54 +00:00
bus-test.bat.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
CMakeLists.txt Adjust cmake build to match autoconf installation locations. 2015-05-27 11:49:41 +01:00
config.h.cmake Keep cmake generated defines for include files in sync with autotools. 2015-03-05 14:05:59 +01:00
ConfigureChecks.cmake Add missing include file for cmake function check_include_files() (commit 2d2b5af) 2015-03-05 14:45:18 +01:00
dbus-env.bat.cmake Split DBUS_SESSION_BUS_DEFAULT_ADDRESS into listen, connect addresses and set better defaults 2012-08-13 19:57:13 +01:00