diff options
| author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-03-05 00:02:14 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-08 11:04:26 -0800 |
| commit | 61125e07624e8ac29d9483671fe81b7fda3ebc14 (patch) | |
| tree | 187e698f8ec36a38ed767663b295650cf15dbd03 | |
| parent | 56e417992d96e5ae44e2928d592e5289c28b4b8d (diff) | |
| download | poky-61125e07624e8ac29d9483671fe81b7fda3ebc14.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch | 21 | ||||
| -rw-r--r-- | meta/recipes-connectivity/connman/connman_0.65.bb | 3 |
2 files changed, 23 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch b/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch new file mode 100644 index 0000000000..787d49ba8d --- /dev/null +++ b/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Some platform (like atom-pc) enables rootless X, | ||
| 2 | thus we need to add the xuser in the list. | ||
| 3 | |||
| 4 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
| 5 | |||
| 6 | diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf | ||
| 7 | --- connman-0.65-orig/src/connman-dbus.conf 2011-03-04 09:34:49.000000000 +0800 | ||
| 8 | +++ connman-0.65/src/connman-dbus.conf 2011-03-04 09:35:21.000000000 +0800 | ||
| 9 | @@ -7,6 +7,12 @@ | ||
| 10 | <allow send_interface="net.connman.Agent"/> | ||
| 11 | <allow send_interface="net.connman.Counter"/> | ||
| 12 | </policy> | ||
| 13 | + <policy user="xuser"> | ||
| 14 | + <allow own="net.connman"/> | ||
| 15 | + <allow send_destination="net.connman"/> | ||
| 16 | + <allow send_interface="net.connman.Agent"/> | ||
| 17 | + <allow send_interface="net.connman.Counter"/> | ||
| 18 | + </policy> | ||
| 19 | <policy at_console="true"> | ||
| 20 | <allow send_destination="net.connman"/> | ||
| 21 | </policy> | ||
diff --git a/meta/recipes-connectivity/connman/connman_0.65.bb b/meta/recipes-connectivity/connman/connman_0.65.bb index 0b077e1d98..8bb84a1cf2 100644 --- a/meta/recipes-connectivity/connman/connman_0.65.bb +++ b/meta/recipes-connectivity/connman/connman_0.65.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | require connman.inc | 1 | require connman.inc |
| 2 | PR = "r0" | 2 | PR = "r1" |
| 3 | 3 | ||
| 4 | EXTRA_OECONF += "\ | 4 | EXTRA_OECONF += "\ |
| 5 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ | 5 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ |
| @@ -21,6 +21,7 @@ EXTRA_OECONF += "\ | |||
| 21 | SRC_URI = "\ | 21 | SRC_URI = "\ |
| 22 | http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \ | 22 | http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \ |
| 23 | file://fix-shutdown-ap-disconnect.patch \ | 23 | file://fix-shutdown-ap-disconnect.patch \ |
| 24 | file://add_xuser_dbus_permission.patch \ | ||
| 24 | file://connman \ | 25 | file://connman \ |
| 25 | " | 26 | " |
| 26 | 27 | ||
