bus: follow D-bus policy 95/139495/1 accepted/tizen/4.0/unified/20170816.011001 accepted/tizen/4.0/unified/20170816.014537 accepted/tizen/unified/20170721.201739 submit/tizen/20170721.005824 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 19 Jul 2017 06:15:28 +0000 (15:15 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 19 Jul 2017 06:15:28 +0000 (15:15 +0900)
Tizen D-bus policy does not support Smack rule.
The following patch set of D-bus probably affects dbus-daemon which is used for
accessibility.

https://review.tizen.org/gerrit/#/c/133270/

It was not possilbe to launch dbus-daemon with following error message.

org.a11y.Bus[2457]: Failed to start message bus:
Attribute "smack" is invalid on <policy> element in this context
org.a11y.Bus[2457]: Failed to launch bus: Bus exited with code 1

Change-Id: I67435b1a27f91193348d1e699805b6d09be8fddc

bus/accessibility.conf.in

index 77f12f8..9336ad7 100644 (file)
@@ -8,28 +8,11 @@
 
   <listen>unix:tmpdir=/tmp</listen>
 
-  <user>owner</user>
-
-  <policy smack="User">
-    <!-- Allow root to connect -->
-    <allow user="owner"/>
-    <allow send_destination="*" eavesdrop="true"/>
-    <!-- Allow everything to be received -->
-    <allow eavesdrop="true"/>
+  <policy user="owner">
     <!-- Allow everything to be sent -->
-    <allow send_destination="*"/>
-    <!-- Allow anyone to own anything -->
-    <allow own="*"/>
-  </policy>
-
-  <policy context="default">
     <allow send_destination="*" eavesdrop="true"/>
     <!-- Allow everything to be received -->
     <allow eavesdrop="true"/>
-    <!-- Allow root to connect -->
-    <allow user="owner"/>
-    <!-- Allow everything to be sent -->
-    <allow send_destination="*"/>
     <!-- Allow anyone to own anything -->
     <allow own="*"/>
   </policy>