udev: set haptic devices to world readable and writable. 2.0alpha master 2.0_alpha submit/master/20120920.151107
authorRafal Krypa <r.krypa@samsung.com>
Wed, 5 Sep 2012 16:12:19 +0000 (18:12 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Wed, 5 Sep 2012 16:16:14 +0000 (18:16 +0200)
Access to devices with permissions 0666 should be controlled by Smack in the future.

Change-Id: Iab25f8212779a35bdcd63bf59898f00e0dd659ae

udev/rules/95-permissions-slp.rules

index 7a07a00..0aaa5a9 100644 (file)
@@ -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"