wayne: sepolicy: Address IR denials
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
This commit is contained in:
parent
3eebbc8ec1
commit
d6ed30131a
3 changed files with 5 additions and 0 deletions
|
@ -1 +1,2 @@
|
||||||
type fingerprint_device, dev_type;
|
type fingerprint_device, dev_type;
|
||||||
|
type spidev_device, dev_type;
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
# HVDCP
|
# HVDCP
|
||||||
/sys/devices(/platform)?/soc/[a-z0-9]+\.i2c/i2c-[0-9]+/[0-9]+-[a-z0-9]+/[a-z0-9]+\.i2c:qcom,[a-z0-9]+@[a-z0-9]:qcom,smb[a-z0-9]+-parallel-slave@[0-9]+/power_supply/parallel(/.*)? u:object_r:sysfs_usb_supply:s0
|
/sys/devices(/platform)?/soc/[a-z0-9]+\.i2c/i2c-[0-9]+/[0-9]+-[a-z0-9]+/[a-z0-9]+\.i2c:qcom,[a-z0-9]+@[a-z0-9]:qcom,smb[a-z0-9]+-parallel-slave@[0-9]+/power_supply/parallel(/.*)? u:object_r:sysfs_usb_supply:s0
|
||||||
|
|
||||||
|
# IR
|
||||||
|
/dev/spidev7.1 u:object_r:spidev_device:s0
|
||||||
|
|
||||||
# Light HAL
|
# Light HAL
|
||||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_wayne u:object_r:hal_light_default_exec:s0
|
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_wayne u:object_r:hal_light_default_exec:s0
|
||||||
|
|
||||||
|
|
1
sepolicy/hal_ir_default.te
Normal file
1
sepolicy/hal_ir_default.te
Normal file
|
@ -0,0 +1 @@
|
||||||
|
allow hal_ir_default spidev_device:chr_file rw_file_perms;
|
Loading…
Reference in a new issue