mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: sepolicy: Label sysfs_leds, resolve denials
* avc: denied { search } for name="leds" dev="sysfs" ino=7437 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=1 * avc: denied { setattr } for name="led_r" dev="sysfs" ino=25718 scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 Change-Id: I8840e28b3aa72e60d5c15cad66f043a36a15c771
This commit is contained in:
parent
be05387f8f
commit
e03bb93d67
3 changed files with 7 additions and 0 deletions
|
@ -52,3 +52,8 @@
|
|||
# sysfs - iio
|
||||
/sys/bus/iio/devices(/.*)? u:object_r:sysfs_iio:s0
|
||||
/sys/devices/[a-f0-9]+\.spi/spi_master/spi[0-9]+/spi[0-9]+\.0/iio:device[0-9](/.*)? u:object_r:sysfs_iio:s0
|
||||
|
||||
# sysfs - leds
|
||||
/sys/devices/i2c\.[0-9]+/i2c-[0-9]+/[0-9]+-[a-z0-9]+/leds(/.*)? u:object_r:sysfs_leds:s0
|
||||
/sys/devices/i2c\.[0-9]+/i2c-[0-9]+/[0-9]+-[a-z0-9]+/max[a-z0-9]+-led/leds(/.*)? u:object_r:sysfs_leds:s0
|
||||
/sys/devices/leds-qpnp-[0-9]+/leds(/.*)? u:object_r:sysfs_leds:s0
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
allow hal_sensors_default {
|
||||
sysfs_batteryinfo
|
||||
sysfs_graphics
|
||||
sysfs_leds
|
||||
}:dir search;
|
||||
|
||||
allow hal_sensors_default {
|
||||
|
|
|
@ -9,4 +9,5 @@ allow init {
|
|||
sysfs_graphics
|
||||
sysfs_iio
|
||||
sysfs_input
|
||||
sysfs_leds
|
||||
}:file setattr;
|
||||
|
|
Loading…
Reference in a new issue