policy checking scheme: modified to get connection information from kdbus 87/138787/3 accepted/tizen/4.0/unified/20170816.010723 accepted/tizen/unified/20170727.190341 submit/tizen/20170719.103604 submit/tizen/20170725.023005 submit/tizen_4.0/20170811.094300
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Thu, 13 Jul 2017 15:34:37 +0000 (00:34 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 18 Jul 2017 02:54:38 +0000 (11:54 +0900)
commitd3eb8361efb5f070505d641eab8572653c34eaa7
treea40104551846750470de81f082cef82ce8bbb015
parentff862ce88cc1c6589525e6f5a7d4c9b3436cab5e
policy checking scheme: modified to get connection information from kdbus

To check dbus policy it is needed to get every information, especially multiple names and label.

For example,
if Service A have multiple name such as name_A1, name_A2, and name_A3,
and if Service A specify the rule as below,

<deny send_destination="name_A2"/>
<allow send_destination="name_A1"/>

then according to dbus policy,
last specified rule '<allow send_destination="name_A1"/>' is applied,

*** In dbus policy world dbus treat multiple names of Service A as same name,
this also affect every other names of Service A, meaning,
<allow send_destination="name_A1"/> or <allow send_destination="name_A2"/> or <allow send_destination="name_A3"/>

After all, Service B can send message to name_A1, name_A2, and name_A3.
send message to unique name of Service A also allowed by this rule.

*** unique name also treat as same as well-known name of Service A.

Change-Id: I2253296267d8c844c53813455c829bf625f4360c
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/internal/internal.cpp [changed mode: 0644->0755]
src/internal/internal.h [changed mode: 0644->0755]
src/libdbuspolicy1.c