From: Rafal Krypa Date: Wed, 5 Sep 2012 16:12:19 +0000 (+0200) Subject: udev: set haptic devices to world readable and writable. X-Git-Tag: 2.0_alpha^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;p=framework%2Fsecurity%2Flibprivilege-control.git 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 --- 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"