policy: add complaint log for bus_client_policy_check_can_own() 34/208234/3
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Thu, 20 Jun 2019 07:11:01 +0000 (16:11 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 26 Jun 2019 05:25:25 +0000 (05:25 +0000)
Change-Id: I4e67ff2258b11bab764f51cfe7e2ae01f2a11d49
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
bus/services.c

index 7af37d7..bc2ffc1 100644 (file)
@@ -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;