kdbus: Add a null teminated string for GetConnectionCredentials (LinuxSecurityLabel... 71/88071/1 accepted/tizen/common/20160919.154456 accepted/tizen/ivi/20160920.051618 accepted/tizen/mobile/20160920.051523 accepted/tizen/tv/20160920.051536 accepted/tizen/wearable/20160920.051558 submit/tizen/20160919.053144
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 13 Sep 2016 07:42:45 +0000 (16:42 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Tue, 13 Sep 2016 07:43:44 +0000 (16:43 +0900)
commit6108a5a52a0a6a635ce7cb431eedf2c335e02276
tree918dcb0b9104194c2eff0c85b23b2e11b4235669
parent239aacfbab6406159b1a04e4803774e9e24bf976
kdbus: Add a null teminated string for GetConnectionCredentials (LinuxSecurityLabel) method.

The result of LinuxSecurityLabel item should end to null.
Dbus spec : https://dbus.freedesktop.org/doc/dbus-specification.html

Legacy dbus daemon : dbus/bus/driver.c. _dbus_asv_add_byte_array (&array_iter, "LinuxSecurityLabel", s, strlen (s) + 1))
libdbus kdbus : dbus-transport-kdbus.c. dbus_bool_t res = _dbus_asv_add_byte_array (&array_iter, "LinuxSecurityLabel", info.sec_label, strlen (info.sec_label)+1);

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Idff013ca4c56d93a6207bcb7365b36da86f7c1c2
gio/gkdbusfakedaemon.c