mirror of
https://git.yoctoproject.org/poky
synced 2026-06-06 14:49:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e8e37cff2a
commit
1e9c1d570e
@@ -18,7 +18,12 @@ DEPENDS = "libgdbus dbus glib-2.0 iptables"
|
||||
INITSCRIPT_NAME = "connman"
|
||||
INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
|
||||
|
||||
inherit autotools pkgconfig update-rc.d
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM_${PN} = "--system --no-create-home \
|
||||
--shell /bin/false --groups video,tty,audio \
|
||||
--user-group xuser"
|
||||
|
||||
inherit autotools pkgconfig update-rc.d useradd
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
require connman.inc
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
EXTRA_OECONF += "\
|
||||
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
|
||||
|
||||
Reference in New Issue
Block a user