From: Harunobu Kurokawa Date: Mon, 26 Jun 2017 13:41:05 +0000 (+0900) Subject: weston-init: set udev rule to display group for gst-record feature. X-Git-Tag: 4.99.1~108 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d0d26f74d709fb509f97204a6fdfa122e9204295;p=AGL%2Fmeta-agl.git weston-init: set udev rule to display group for gst-record feature. Bug-AGL: SPEC-559 some /dev module should be grant to access as display user. When weston use gst-record, it accesses some /dev driver as display user. Change-Id: Ifc3ab94282d2857d48cfd5673c3eab944badddf3 Signed-off-by: Harunobu Kurokawa Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9821 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account Reviewed-by: Stéphane Desneux Reviewed-by: Jan-Simon Moeller --- diff --git a/meta-agl/recipes-graphics/wayland/weston-init.bbappend b/meta-agl/recipes-graphics/wayland/weston-init.bbappend index 359cb76e5..2e87572b3 100644 --- a/meta-agl/recipes-graphics/wayland/weston-init.bbappend +++ b/meta-agl/recipes-graphics/wayland/weston-init.bbappend @@ -39,6 +39,14 @@ EOF # user 'display' must also be able to access /dev/input/* cat >${D}${sysconfdir}/udev/rules.d/zz-input.rules <<'EOF' SUBSYSTEM=="input", MODE="0660", GROUP="input", SECLABEL{smack}="^" +EOF + + # user 'display' must also be able to access /dev/media*, etc. + cat >${D}${sysconfdir}/udev/rules.d/zz-remote-display.rules <<'EOF' +SUBSYSTEM=="media", MODE="0660", GROUP="display", SECLABEL{smack}="*" +SUBSYSTEM=="video4linux", MODE="0660", GROUP="display", SECLABEL{smack}="*" +KERNEL=="uvcs", SUBSYSTEM=="misc", MODE="0660", GROUP="display", SECLABEL{smack}="*" +KERNEL=="rgnmm", SUBSYSTEM=="misc", MODE="0660", GROUP="display", SECLABEL{smack}="*" EOF install -d ${D}${sysconfdir}/tmpfiles.d