Change the method to get DBUS addres when changing user with "su -" command. 16/115216/1
authorINSUN PYO <insun.pyo@ubuntu1604.playinsun.pe.kr>
Fri, 17 Feb 2017 02:19:31 +0000 (11:19 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 17 Feb 2017 02:52:09 +0000 (18:52 -0800)
commit19f1b4fa995b577b6810b28e251b062fcafd28d5
tree90af04e6bd9a60b85da7029acac4df3be7fb792f
parent9f35da3aea7e5a30be531b5a858a4fa94707fcee
Change the method to get DBUS addres when changing user with "su -" command.

The adbd's privilege has been changed form "System::Privileged" to "User::Shell".
So, pgrep does not work with smack errors when accessing /proc.
If it fails to find DBUS address, the fixed address is used.

Signed-off-by: INSUN PYO <insun.pyo@ubuntu1604.playinsun.pe.kr>
Change-Id: I4f9e0bc0939de2ecd7b866df8a2f266b4258338b
(cherry picked from commit 4f11f164f44d78ec6a54892e5d4095ca52e7117d)
packaging/dbus.sh