diff options
author | Laurent Bigonville <bigon@bigon.be> | 2015-06-15 15:31:58 +0200 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-08-06 17:12:47 +0100 |
commit | 992236f1c57a7a8930e4c8aeb21f30c2d8af21d3 (patch) | |
tree | 5eaaf85c23c19e6c3d6445d1e6ab9803b4027feb | |
parent | 517c4685a8197498dea40918b308beea19155efd (diff) | |
download | dbus-992236f1c57a7a8930e4c8aeb21f30c2d8af21d3.tar.gz |
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.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83856
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | bus/audit.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bus/audit.c b/bus/audit.c index 98f7d7b7..954afa71 100644 --- a/bus/audit.c +++ b/bus/audit.c @@ -67,10 +67,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)); |