[oe-commits] Darren Hart : udev-extraconf: Add rule adding input devices to input group

git at git.openembedded.org git at git.openembedded.org
Thu Apr 4 13:05:38 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 66c9b46f987f3e4f1f9b7b11d1ae157897454f07
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=66c9b46f987f3e4f1f9b7b11d1ae157897454f07

Author: Darren Hart <dvhart at linux.intel.com>
Date:   Wed Apr  3 12:49:40 2013 -0700

udev-extraconf: Add rule adding input devices to input group

Fixes [YOCTO 4164](2/3)

Add all /dev/input/* devices to the input group with g+rw.  This is
needed for rootless X without adding a security hole by making the
device o+rw.

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
Cc: Saul Wold <sgw at linux.intel.com>
Cc: Radu Moisan <radu.moisan at intel.com>
Cc: Ross Burton <ross.burton at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 .../udev/udev-extraconf/localextra.rules           |    2 ++
 meta/recipes-core/udev/udev-extraconf_1.0.bb       |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/udev/udev-extraconf/localextra.rules b/meta/recipes-core/udev/udev-extraconf/localextra.rules
index 4eaa8ca..3d51d3e 100644
--- a/meta/recipes-core/udev/udev-extraconf/localextra.rules
+++ b/meta/recipes-core/udev/udev-extraconf/localextra.rules
@@ -19,3 +19,5 @@ KERNEL=="rtc0", SYMLINK+="rtc"
 #The first framebuffer is symlinked to /dev/fb
 KERNEL=="fb0",  SYMLINK+="fb"
 
+# Make all input devices read-write to the input group
+SUBSYSTEM=="input", GROUP="input", MODE="660"
diff --git a/meta/recipes-core/udev/udev-extraconf_1.0.bb b/meta/recipes-core/udev/udev-extraconf_1.0.bb
index 2c4a4f1..ea95a60 100644
--- a/meta/recipes-core/udev/udev-extraconf_1.0.bb
+++ b/meta/recipes-core/udev/udev-extraconf_1.0.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
 
 inherit allarch
 
-PR = "r7"
+PR = "r8"
 
 SRC_URI = " \
        file://automount.rules \





More information about the Openembedded-commits mailing list