diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index b009588..2a538c3 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -77,3 +77,6 @@ /sys/devices/virtual/sec/sec_touchkey(/.*)? u:object_r:sysfs_sec_touchkey:s0 /sys/devices/virtual/sec/switch(/.*)? u:object_r:sysfs_sec_switch:s0 /sys/devices/virtual/sec/tsp(/.*)? u:object_r:sysfs_sec_tsp:s0 + +# sysfs - sensors +/sys/devices/virtual/sensors(/.*)? u:object_r:sysfs_sensors:s0 diff --git a/sepolicy/common/init.te b/sepolicy/common/init.te index 74304cd..91fa961 100644 --- a/sepolicy/common/init.te +++ b/sepolicy/common/init.te @@ -1,6 +1,7 @@ allow init { sysfs_iio sysfs_sec_tsp + sysfs_sensors }:lnk_file read; allow init sysfs_input:file rw_file_perms; @@ -22,7 +23,8 @@ allow init { sysfs_sec_switch sysfs_sec_thermistor sysfs_sec_touchkey - sysfs_sec_tsp + sysfs_sec_tsp + sysfs_sensors }:file setattr; allow init {