diff options
author | Diogo Ferreira <diogo@underdev.org> | 2015-11-23 13:57:01 +0000 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-11-27 05:25:43 -0800 |
commit | 140305db6d1a47e57df891a9aa5b04afca69ef6c (patch) | |
tree | a6fba51dec30cce827af154d2d598bb798924b3d /sepolicy | |
parent | aeec0ac261c6460965f4ddcd11b309fed0335e1d (diff) | |
download | vendor_replicant-140305db6d1a47e57df891a9aa5b04afca69ef6c.zip vendor_replicant-140305db6d1a47e57df891a9aa5b04afca69ef6c.tar.gz vendor_replicant-140305db6d1a47e57df891a9aa5b04afca69ef6c.tar.bz2 |
sepolicy: qcom: Allow reading PSU sysfs by system_server
BatteryService queries the usb state to check whether the usb type
is HVDCP. This patch adds a rule to allow that.
For more context check BatteryService#Led#isHvdcpPresent.
Change-Id: Ifacf13dde4b1df81c92bf5d92196e504e61dd402
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/qcom/system_server.te | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/qcom/system_server.te b/sepolicy/qcom/system_server.te index 362bd4f..3239c2d 100644 --- a/sepolicy/qcom/system_server.te +++ b/sepolicy/qcom/system_server.te @@ -4,3 +4,7 @@ allow system_server mm-pp-daemon:unix_stream_socket connectto; # Time services allow system_server time_daemon:unix_stream_socket connectto; + +#allow reading of usb sysfs to query hvdcp state +allow system_server sysfs_usb_supply:dir { search }; +allow system_server sysfs_usb_supply:file r_file_perms; |