diff options
author | Konrad Kuchciak <k.kuchciak@samsung.com> | 2018-09-04 06:56:47 +0200 |
---|---|---|
committer | Konrad Kuchciak <k.kuchciak@samsung.com> | 2018-09-04 07:00:10 +0200 |
commit | 9c1da4c5884d9caf69f2a2105feafa1b95d0fd20 (patch) | |
tree | 329a710ef70ee7ff4921b2ba8224ae12809bd130 | |
parent | 027d0947d6148ebb16bb62531ed7f3e09b747be2 (diff) | |
download | peripheral-bus-accepted/tizen_5.0_unified.tar.gz peripheral-bus-accepted/tizen_5.0_unified.tar.bz2 peripheral-bus-accepted/tizen_5.0_unified.zip |
udev: apply proper security label to files read by adc modulesubmit/tizen_5.0/20181101.000004submit/tizen/20180904.130723accepted/tizen/unified/20180904.180704accepted/tizen/5.0/unified/20181102.020415accepted/tizen_5.0_unified
Change-Id: I0a32f3fd5bf3096ab38ab88a97fc37eab965f6ca
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
-rw-r--r-- | packaging/90-peripheral-io.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/90-peripheral-io.rules b/packaging/90-peripheral-io.rules index ca910bd..50cee54 100644 --- 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" |