projects
/
platform
/
core
/
system
/
peripheral-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027d094
)
udev: apply proper security label to files read by adc module
34/188334/1
accepted/tizen_5.0_unified
accepted/tizen/5.0/unified/20181102.020415
accepted/tizen/unified/20180904.180704
submit/tizen/20180904.130723
submit/tizen_5.0/20181101.000004
author
Konrad Kuchciak
<k.kuchciak@samsung.com>
Tue, 4 Sep 2018 04:56:47 +0000
(06:56 +0200)
committer
Konrad Kuchciak
<k.kuchciak@samsung.com>
Tue, 4 Sep 2018 05:00:10 +0000
(07:00 +0200)
Change-Id: I0a32f3fd5bf3096ab38ab88a97fc37eab965f6ca
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
packaging/90-peripheral-io.rules
patch
|
blob
|
history
diff --git
a/packaging/90-peripheral-io.rules
b/packaging/90-peripheral-io.rules
index ca910bd83f44304855a53d8399b7394e5425a2aa..50cee540aa270839a878bda2fe900f2445a84c7b 100644
(file)
--- a/
packaging/90-peripheral-io.rules
+++ b/
packaging/90-peripheral-io.rules
@@
-16,3
+16,8
@@
SUBSYSTEM=="i2c-dev", KERNEL=="i2c-*", ACTION=="add", \
SUBSYSTEM=="spidev", KERNEL=="spidev*.*", ACTION=="add", \
MODE="0660", OWNER="root", GROUP="root", SECLABEL{smack}="*"
+
+SUBSYSTEM=="iio", KERNEL=="iio*", PROGRAM="/bin/sh -c 'find /sys%p/ | grep in_voltage'", ACTION=="add", \
+ RUN+="/bin/chown root:root %c", \
+ RUN+="/bin/chmod 0660 %c", \
+ RUN+="/bin/chsmack -a * %c"