From c79d65bbdc7b48365dd2f61427a70ddc92025ee5 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 15 Jun 2015 15:31:58 +0200 Subject: [PATCH 2/2] Throw a warning if we cannot open the audit socket as a session bus This will effectively print a warning when failing to open the audit socket running as a session bus. The call to audit_open() should succeed even if the dbus-daemon doesn't have the CAP_AUDIT_WRITE capability. https://bugs.freedesktop.org/show_bug.cgi?id=83856 --- bus/audit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bus/audit.c b/bus/audit.c index 1aa1e18..639e1b4 100644 --- a/bus/audit.c +++ b/bus/audit.c @@ -62,10 +62,6 @@ bus_audit_init (BusContext *context) if (e == EINVAL || e == EPROTONOSUPPORT || e == EAFNOSUPPORT) return; - /* If user bus, bail out */ - if (e == EPERM && getuid () != 0) - return; - bus_context_log (context, DBUS_SYSTEM_LOG_WARNING, "Failed to open connection to the audit subsystem: %s", _dbus_strerror (e)); -- 2.1.4