kdbus: check policy first, only then open kdbus 48/178148/2
authorAleksy Barcz <a.barcz@partner.samsung.com>
Tue, 8 May 2018 09:36:16 +0000 (11:36 +0200)
committerAleksy Barcz <a.barcz@partner.samsung.com>
Thu, 17 May 2018 08:50:02 +0000 (10:50 +0200)
commit9989368184d5dde5f696283067745db70353c5da
treee1a5220a8a0331d128cc22feae71b0539f25519e
parent290ebee68d21e1a5b5b9a4f5d5e52ef65ec8199d
kdbus: check policy first, only then open kdbus

A process shouldn't hold an open kdbus descriptor, if according to
security policy this process has no rights to open the bus at all.

Change-Id: Icd5a0c8fd68e1a7ec0e419f77272d279cf3289f6
gio/gkdbus.c