chiark / gitweb /
bus-proxyd: improve compatibility with dbus-1
authorLukasz Skalski <l.skalski@samsung.com>
Mon, 13 Oct 2014 13:29:57 +0000 (15:29 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 14 Oct 2014 17:39:55 +0000 (19:39 +0200)
commitb0f84d4d7832659f2216bda7a7cdf51f5e79c6eb
tree8d9bca7f2df109ffa4e182b87e7fde04e7c2d7c9
parent9ff5ff320ec71fec7f2c841223380665794afd07
bus-proxyd: improve compatibility with dbus-1

'GetConnectionUnixProcessID', 'GetConnectionUnixUser' and
'GetConnectionSELinuxSecurityContext' methods should return
'NameHasNoOwner' error (if chosen name is not available on bus)
with more detailed description - like dbus-1:

Could not get PID of name 'org.freedesktop.test': no such name.
Could not get UID of name 'org.freedesktop.test': no such name.
Could not get security context of name 'org.freedesktop.test': no such name.

Otherwise we have only laconic message without proper dbus error:

Error System.Error.ENXIO: No such device or address
src/bus-proxyd/bus-proxyd.c