sm8250-common: Address backlight/scsi/thermal related denials in recovery

Change-Id: Iecfac8b7bd618a2dca32775709c608610c564835
This commit is contained in:
quark2323 2020-06-28 17:09:29 +02:00 committed by LuK1337
parent f7dab66f68
commit 59b31cc8a7
2 changed files with 8 additions and 0 deletions

2
sepolicy/vendor/file.te vendored Normal file
View file

@ -0,0 +1,2 @@
# sysfs
type sysfs_scsi_target, fs_type, sysfs_type;

View file

@ -7,6 +7,12 @@
/dev/dri/controlD64 u:object_r:graphics_device:s0
/dev/dri/renderD128 u:object_r:graphics_device:s0
# sysfs files
/sys/class/thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/devices(/platform)?/soc/[a-f0-9]+.ufshc/host0/target0:0:0/0:0:0:[0-9]+/scsi_generic(/.*)? u:object_r:sysfs_scsi_target:s0
/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/backlight(/.*)? u:object_r:sysfs_graphics:s0
/sys/devices/virtual/thermal(/.*)? u:object_r:sysfs_thermal:s0
# UFS Devices
/dev/block/platform/soc/1d84000\.ufshc/by-name/system u:object_r:system_block_device:s0
/dev/block/platform/soc/1d84000\.ufshc/by-name/vendor u:object_r:system_block_device:s0