Fix bug 799
From: Dongxiao Xu <[email protected]>
This pull request fixes [YOCTO #799], please help to review and pull.
The patch add rootless X user into group audio to access /dev/snd/* devices.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: dxu4/bugfix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/bugfix
Thanks,
Dongxiao Xu <[email protected]>
---
Dongxiao Xu (1):
xserver-nodm-init: add xuser to group audio
.../x11-common/xserver-nodm-init.bb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
PATCH 1/1 xserver-nodm-init: add xuser to group audio
From: Dongxiao Xu <[email protected]>
add rootless X user to group audio to access /dev/snd/*
Fixes [YOCTO #799]
--- .../x11-common/xserver-nodm-init.bb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-graphics/x11-common/xserver-nodm-init.bb +3 -2
@@ -3,7 +3,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" SECTION = "x11" PRIORITY = "optional" -PR = "r24" +PR = "r25" RDEPENDS_${PN} = "dbus-wait sudo" SRC_URI = "file://xserver-nodm \
@@ -30,12 +30,13 @@ pkg_postinst_${PN} () { fi if [ -f /etc/X11/Xusername ]; then - # create the rootless X user, and add user to group tty, video + # create the rootless X user, and add user to group tty, video, audio username=`cat /etc/X11/Xusername` adduser --disabled-password $username # FIXME: use addgroup if busybox addgroup is ready sed -i -e "s/^video:.*/&${username}/g" /etc/group sed -i -e "s/^tty:.*/&${username}/g" /etc/group + sed -i -e "s/^audio:.*/&${username}/g" /etc/group fi }
Signature · 1 line
1.7.1
Richard Purdie
AppliedRe: [PATCH 1/1] xserver-nodm-init: add xuser to group audio
Quoted 11 lines · Dongxiao Xu
From: Dongxiao Xu <[email protected]>
add rootless X user to group audio to access
/dev/snd/*Fixes [YOCTO #799]
CC Ke Yu <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- .../x11-common/xserver-nodm-init.bb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Richard