aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/connman/connman/add_xuser_dbus_permission.patch
blob: 36e74562809e7b17efb79f459ed0108b80d01d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Some platform (like atom-pc) enables rootless X,
thus we need to add the xuser in the list.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>

diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
--- connman-0.65-orig/src/connman-dbus.conf	2011-03-04 09:34:49.000000000 +0800
+++ connman-0.65/src/connman-dbus.conf	2011-03-04 09:35:21.000000000 +0800
@@ -7,6 +7,12 @@
         <allow send_interface="net.connman.Agent"/>
         <allow send_interface="net.connman.Counter"/>
     </policy>
+    <policy user="xuser">
+        <allow own="net.connman"/>
+        <allow send_destination="net.connman"/>
+        <allow send_interface="net.connman.Agent"/>
+        <allow send_interface="net.connman.Counter"/>
+    </policy>
     <policy at_console="true">
         <allow send_destination="net.connman"/>
     </policy>