if (_dbus_string_equal_c_str (service_name, DBUS_SERVICE_DBUS))
{
dbus_set_error (error, DBUS_ERROR_INVALID_ARGS,
- "Connection \"%s\" is not allowed to own the service \"%s\"because "
+ "Connection \"%s\" (%s) is not allowed to own the service \"%s\"because "
"it is reserved for D-Bus' use only",
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
"(inactive)",
+ bus_connection_get_loginfo (connection),
DBUS_SERVICE_DBUS);
goto out;
}
}
dbus_set_error (error, DBUS_ERROR_ACCESS_DENIED,
- "Connection \"%s\" is not allowed to own the service \"%s\" due "
+ "Connection \"%s\" (%s) is not allowed to own the service \"%s\" due "
"to SELinux policy",
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
"(inactive)",
+ bus_connection_get_loginfo (connection),
_dbus_string_get_const_data (service_name));
goto out;
}
break;
case BUS_RESULT_FALSE:
dbus_set_error (error, DBUS_ERROR_ACCESS_DENIED,
- "Connection \"%s\" is not allowed to own the service \"%s\" due "
+ "Connection \"%s\" (%s) is not allowed to own the service \"%s\" due "
"to security policies in the configuration file",
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
"(inactive)",
+ bus_connection_get_loginfo (connection),
_dbus_string_get_const_data (service_name));
/* If we hit OOM while setting the error, this will syslog "out of memory"
bus_context_get_max_services_per_connection (registry->context))
{
dbus_set_error (error, DBUS_ERROR_LIMITS_EXCEEDED,
- "Connection \"%s\" is not allowed to own more services "
+ "Connection \"%s\" (%s) is not allowed to own more services "
"(increase limits in configuration file if required)",
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
- "(inactive)");
+ "(inactive)",
+ bus_connection_get_loginfo (connection));
goto out;
}