android_device_samsung_msm8.../sepolicy/common/hal_sensors_default.te
Kevin F. Haggerty dbcc41c888
msm8974-common: sepolicy: Resolve additional sensors HAL denials
* avc: denied { search } for name="sec-thermistor" dev="sysfs"
  ino=5485 scontext=u:r:hal_sensors_default:s0
  tcontext=u:object_r:sysfs_sec_thermistor:s0 tclass=dir permissive=0

Change-Id: I4d77e87b2662bca081cc5b934161347fed6a157d
2018-11-29 21:58:42 -07:00

35 lines
605 B
Plaintext

r_dir_file(hal_sensors_default, efs_file)
allow hal_sensors_default {
iio_device
sensors_device
}:chr_file r_file_perms;
allow hal_sensors_default {
sysfs_iio
sysfs_input
}:dir r_dir_perms;
allow hal_sensors_default {
sysfs_batteryinfo
sysfs_graphics
sysfs_leds
sysfs_sec_thermistor
}:dir search;
allow hal_sensors_default {
sysfs_batteryinfo
sysfs_graphics
sysfs_sec_thermistor
}:file r_file_perms;
allow hal_sensors_default {
sysfs_iio
sysfs_input
}:file rw_file_perms;
allow hal_sensors_default {
sysfs_iio
sysfs_input
}:lnk_file read;