mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
connman: add xuser to the dbus permission list
Some platform (like atom-pc) enables rootless X, thus the connman frontend run on it need the permission to connect with connman by dbus. This commit grants permission to xuser. This fixes [YOCTO #779] (From OE-Core rev: cfbf50c235c2faeb53f43b42a12c49c022288488) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
Some platform (like atom-pc) enables rootless X,
|
||||
thus we need to add the xuser in the list.
|
||||
|
||||
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>
|
||||
@@ -1,5 +1,5 @@
|
||||
require connman.inc
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
EXTRA_OECONF += "\
|
||||
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
|
||||
@@ -21,6 +21,7 @@ EXTRA_OECONF += "\
|
||||
SRC_URI = "\
|
||||
http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
|
||||
file://fix-shutdown-ap-disconnect.patch \
|
||||
file://add_xuser_dbus_permission.patch \
|
||||
file://connman \
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user