diff options
author | sanghyeok.oh <sanghyeok.oh@samsung.com> | 2019-06-20 16:11:01 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2019-06-26 05:25:25 +0000 |
commit | 7ef5f3b1b46ab773eb31bd36f17d9b770b4e9745 (patch) | |
tree | 5fb60a74fa9f4be5739bc4683723bfb3a704dc05 | |
parent | bf37f6adf4a86b93a56680f39ae472dd5f59fa7f (diff) | |
download | dbus-7ef5f3b1b46ab773eb31bd36f17d9b770b4e9745.tar.gz dbus-7ef5f3b1b46ab773eb31bd36f17d9b770b4e9745.tar.bz2 dbus-7ef5f3b1b46ab773eb31bd36f17d9b770b4e9745.zip |
policy: add complaint log for bus_client_policy_check_can_own()
Change-Id: I4e67ff2258b11bab764f51cfe7e2ae01f2a11d49
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
-rw-r--r-- | bus/services.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/services.c b/bus/services.c index 7af37d7a..bc2ffc1f 100644 --- a/bus/services.c +++ b/bus/services.c @@ -479,6 +479,11 @@ bus_registry_acquire_service (BusRegistry *registry, bus_connection_get_name (connection) : "(inactive)", _dbus_string_get_const_data (service_name)); + + /* If we hit OOM while setting the error, this will syslog "out of memory" + * which is itself an indication that something is seriously wrong */ + bus_context_log_literal (registry->context, DBUS_SYSTEM_LOG_SECURITY, + error->message); goto out; case BUS_RESULT_LATER: retval = BUS_RESULT_LATER; |