weston-init: set udev rule to display group for gst-record feature. 21/9821/3
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Mon, 26 Jun 2017 13:41:05 +0000 (22:41 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 29 Jun 2017 11:19:10 +0000 (11:19 +0000)
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 <harunobu.kurokawa.dn@renesas.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9821
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl/recipes-graphics/wayland/weston-init.bbappend

index 359cb76..2e87572 100644 (file)
@@ -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