wayne: sepolicy: Address IR denials

Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
This commit is contained in:
Isaac Chen 2018-08-05 01:59:32 +02:00
parent 3eebbc8ec1
commit d6ed30131a
3 changed files with 5 additions and 0 deletions

View file

@ -1 +1,2 @@
type fingerprint_device, dev_type;
type spidev_device, dev_type;

View file

@ -14,6 +14,9 @@
# 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
# IR
/dev/spidev7.1 u:object_r:spidev_device:s0
# Light HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_wayne u:object_r:hal_light_default_exec:s0

View file

@ -0,0 +1 @@
allow hal_ir_default spidev_device:chr_file rw_file_perms;