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 Jean Graff
parent 20bb266be8
commit d92733b312
4 changed files with 12 additions and 0 deletions

View File

@@ -19,3 +19,6 @@ type persist_chargeonly_file, file_type, data_file_type;
# Healthd
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/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
# Homebutton
/sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0

View File

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

View File

@@ -6,6 +6,8 @@ allow system_server vendor_keylayout_file:dir r_dir_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:file r_file_perms;
allow system_server sysfs_homebutton:file rw_file_perms;
allow system_server sysfs_homebutton:dir r_dir_perms;
# MotSpeakerHelperProximity
binder_call(system_server, hal_audio_default)