diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-10-27 16:15:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-02 08:58:02 +0000 |
commit | 1e9c1d570e18de5548f6450a88e3a4e79d1f9978 (patch) | |
tree | ab446649e2b5eebde496b90fa9207b191b47b6f9 /meta | |
parent | e8e37cff2aaac25b046236be59e86b83611330cf (diff) | |
download | poky-1e9c1d570e18de5548f6450a88e3a4e79d1f9978.tar.gz |
connman: Use useradd to add the xuser for DBus
Connmand needs to start as the xuser as defined in the dbus
configuration and needs to share this with rootless X. Since
it's possible for connmand to run on a sytem without rootless
X we still need to create the user here.
Useradd will fail gracefully if the user already exists.
Fixes: [YOCTO #1699]
(From OE-Core rev: 8139ac9284031e00d6b268210b04b57670d9268a)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 7 | ||||
-rw-r--r-- | meta/recipes-connectivity/connman/connman_0.75.bb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index ae1b725e7d..480b59cb5c 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -18,7 +18,12 @@ DEPENDS = "libgdbus dbus glib-2.0 iptables" | |||
18 | INITSCRIPT_NAME = "connman" | 18 | INITSCRIPT_NAME = "connman" |
19 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." | 19 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." |
20 | 20 | ||
21 | inherit autotools pkgconfig update-rc.d | 21 | USERADD_PACKAGES = "${PN}" |
22 | USERADD_PARAM_${PN} = "--system --no-create-home \ | ||
23 | --shell /bin/false --groups video,tty,audio \ | ||
24 | --user-group xuser" | ||
25 | |||
26 | inherit autotools pkgconfig update-rc.d useradd | ||
22 | 27 | ||
23 | do_install_append() { | 28 | do_install_append() { |
24 | install -d ${D}${sysconfdir}/init.d/ | 29 | install -d ${D}${sysconfdir}/init.d/ |
diff --git a/meta/recipes-connectivity/connman/connman_0.75.bb b/meta/recipes-connectivity/connman/connman_0.75.bb index 8a02753f04..78f2199d0c 100644 --- a/meta/recipes-connectivity/connman/connman_0.75.bb +++ b/meta/recipes-connectivity/connman/connman_0.75.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | require connman.inc | 1 | require connman.inc |
2 | PR = "r2" | 2 | PR = "r3" |
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 \ |