sdm845-common: Properly label display control files
Additionally, allow system_server access to them. Change-Id: I12ceb3970460282d10b240e8a12207e2fd3ca882
This commit is contained in:
parent
066ab27624
commit
b7f7fa2a3f
3 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ type op1_file, file_type;
|
|||
type op2_file, file_type;
|
||||
type persist_file, file_type;
|
||||
type proc_touchpanel, fs_type;
|
||||
type sysfs_livedisplay, sysfs_type, fs_type;
|
||||
type sysfs_fpc_proximity, sysfs_type, fs_type;
|
||||
type sysfs_oem, sysfs_type, fs_type;
|
||||
type sysfs_battery_supply, sysfs_type, fs_type;
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/dc u:object_r:sysfs_battery_supply:s0
|
||||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/main u:object_r:sysfs_battery_supply:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,dsi-display@18/hbm u:object_r:sysfs_livedisplay:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,dsi-display@18/display_mode u:object_r:sysfs_livedisplay:s0
|
||||
|
|
2
sepolicy/private/system_server.te
Normal file
2
sepolicy/private/system_server.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Allow access to LiveDisplay tuning nodes
|
||||
allow system_server sysfs_livedisplay:file rw_file_perms;
|
Loading…
Reference in a new issue