From 900992777d1ab5f5f825c5db6d41c3dde56dc783 Mon Sep 17 00:00:00 2001 From: Rafal Krypa Date: Wed, 5 Sep 2012 18:12:19 +0200 Subject: [PATCH] udev: set haptic devices to world readable and writable. Access to devices with permissions 0666 should be controlled by Smack in the future. Change-Id: Iab25f8212779a35bdcd63bf59898f00e0dd659ae --- udev/rules/95-permissions-slp.rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/udev/rules/95-permissions-slp.rules b/udev/rules/95-permissions-slp.rules index 7a07a00..0aaa5a9 100644 --- a/udev/rules/95-permissions-slp.rules +++ b/udev/rules/95-permissions-slp.rules @@ -44,6 +44,11 @@ DRIVER=="mdnie", RUN+="/bin/chmod 0666 %S/%p/tone" DRIVER=="mdnie", RUN+="/bin/chmod 0666 %S/%p/outdoor" DRIVER=="mdnie", RUN+="/bin/chmod 0666 %S/%p/tune" +# haptic +SUBSYSTEM=="haptic", RUN+="/bin/chmod 0666 %S/%p/level" +SUBSYSTEM=="haptic", RUN+="/bin/chmod 0666 %S/%p/enable" +SUBSYSTEM=="haptic", RUN+="/bin/chmod 0666 %S/%p/oneshot" + # Video4Linux SUBSYSTEM!="video4linux", GOTO="v4l_slp_end" IMPORT{program}="v4l_id %N" -- 2.7.4