diff options
author | Isaac Chen <isaacchen@isaacchen.cn> | 2018-08-05 01:59:32 +0200 |
---|---|---|
committer | Isaac Chen <isaacchen@isaacchen.cn> | 2018-08-05 00:00:16 +0000 |
commit | d6ed30131a678393fc0a9df6e5f2de5762be5051 (patch) | |
tree | 81617350519cf784c8985465b91e47058bb20454 /sepolicy | |
parent | 3eebbc8ec139b898e0393c88ceb0b6fa1bc7300b (diff) |
wayne: sepolicy: Address IR denials
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/device.te | 1 | ||||
-rw-r--r-- | sepolicy/file_contexts | 3 | ||||
-rw-r--r-- | sepolicy/hal_ir_default.te | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/device.te b/sepolicy/device.te index 8ec31c9..b84e726 100644 --- a/sepolicy/device.te +++ b/sepolicy/device.te @@ -1 +1,2 @@ type fingerprint_device, dev_type; +type spidev_device, dev_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 19a8402..6959397 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -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 diff --git a/sepolicy/hal_ir_default.te b/sepolicy/hal_ir_default.te new file mode 100644 index 0000000..2f9f2b6 --- /dev/null +++ b/sepolicy/hal_ir_default.te @@ -0,0 +1 @@ +allow hal_ir_default spidev_device:chr_file rw_file_perms; |