scripts: dbus: Allow root to use d-bus interface 43/240143/3
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 4 Aug 2020 02:05:41 +0000 (11:05 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Aug 2020 05:58:44 +0000 (14:58 +0900)
Allow 'root' to use d-bus interface provided by PASS.
The 'root' have to control all d-bus interface without any restrictions.

Change-Id: I18d467f2745741c7c4b990b64210dfd16692d39c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
scripts/pass.conf

index 40c543eb133903a4568a153952049d678dec7a4d..b96f2afd370b8b7901285e8f76bd7ba38e4019d6 100644 (file)
@@ -1,6 +1,12 @@
 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
+    <policy user="root">
+        <allow send_destination="org.tizen.system.pass"
+               send_interface="org.tizen.system.pass.pmqos"/>
+        <allow send_destination="org.tizen.system.thermal"
+               send_interface="org.tizen.system.thermal"/>
+    </policy>
     <policy user="system_fw">
         <allow own="org.tizen.system.thermal"/>
         <allow own="org.tizen.system.pass"/>