connman: don't give user 'system' permissions by default. We might not have one....
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 4 Nov 2009 13:53:34 +0000 (14:53 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 4 Nov 2009 13:53:34 +0000 (14:53 +0100)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
recipes/connman/connman_0.46.bb
recipes/connman/files/no_system_user_perms.patch [new file with mode: 0644]

index 26b7b82..b1729c6 100644 (file)
@@ -32,6 +32,7 @@ EXTRA_OECONF += "\
 
 SRC_URI  = "\
   http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
+  file://no_system_user_perms.patch;patch=1 \
   file://connman \
 "
 
diff --git a/recipes/connman/files/no_system_user_perms.patch b/recipes/connman/files/no_system_user_perms.patch
new file mode 100644 (file)
index 0000000..e02bd30
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/src/connman-dbus.conf b/src/connman-dbus.conf
+index 2be3764..b4d4acd 100644
+--- a/src/connman-dbus.conf
++++ b/src/connman-dbus.conf
+@@ -6,9 +6,6 @@
+         <allow send_destination="org.moblin.connman"/>
+         <allow send_interface="org.moblin.connman.Agent"/>
+     </policy>
+-    <policy user="system">
+-        <allow send_destination="org.moblin.connman"/>
+-    </policy>
+     <policy at_console="true">
+         <allow send_destination="org.moblin.connman"/>
+     </policy>