msm8953-common: Add homebutton perms and address denials

Signed-off-by: trpsl <trpsl755@gmail.com>
This commit is contained in:
Vachounet
2020-02-24 01:26:54 +01:00
committed by Jorge Lucas
parent 759f7b7910
commit 8aa8cdcd46
4 changed files with 11 additions and 0 deletions

View File

@@ -19,3 +19,6 @@ type persist_chargeonly_file, file_type, data_file_type;
# Healthd # Healthd
type sysfs_healthd, fs_type, sysfs_type, mlstrustedobject; type sysfs_healthd, fs_type, sysfs_type, mlstrustedobject;
# Homebutton
type sysfs_homebutton, fs_type, sysfs_type, mlstrustedobject;

View File

@@ -71,3 +71,6 @@
/sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/usb(/.*)? u:object_r:sysfs_healthd:s0 /sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/usb(/.*)? u:object_r:sysfs_healthd:s0
/sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/usbeb(/.*)? u:object_r:sysfs_healthd:s0 /sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/usbeb(/.*)? u:object_r:sysfs_healthd:s0
/sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/wireless(/.*)? u:object_r:sysfs_healthd:s0 /sys/devices/soc/800f000\.qcom,spmi/spmi-0/spmi0-00/800f000\.qcom,spmi:qcom,pm660@0:qcom,qpnp-smb2/power_supply/wireless(/.*)? u:object_r:sysfs_healthd:s0
# Homebutton
/sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0

View File

@@ -1,2 +1,5 @@
get_prop(system_app, vendor_fm_prop) get_prop(system_app, vendor_fm_prop)
get_prop(system_app, hwrev_prop) get_prop(system_app, hwrev_prop)
allow system_app sysfs_homebutton:file write;
allow system_app sysfs_homebutton:dir search;
allow system_app sysfs_homebutton:file { getattr open };

View File

@@ -6,3 +6,5 @@ allow system_server vendor_keylayout_file:dir r_dir_perms;
allow system_server vendor_keylayout_file:file r_file_perms; allow system_server vendor_keylayout_file:file r_file_perms;
allow system_server vendor_idc_file:dir r_dir_perms; allow system_server vendor_idc_file:dir r_dir_perms;
allow system_server vendor_idc_file:file r_file_perms; allow system_server vendor_idc_file:file r_file_perms;
allow system_server sysfs_homebutton:file rw_file_perms;
allow system_server sysfs_homebutton:dir r_dir_perms;