sm6375-common: sepolicy: Allow libperfmgr to read and write to sde-crtc-*

Change-Id: I5abde96b2a6bdde7f7b5cd577f878ce93b8dc8b3
This commit is contained in:
LuK1337 2024-07-21 20:16:00 +05:30 committed by Anand S
parent 3092927bb5
commit 3491348ec3
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
3 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,9 @@ type cutback_socket, file_type;
type vendor_persist_egis_file, file_type, vendor_persist_type; type vendor_persist_egis_file, file_type, vendor_persist_type;
type vendor_persist_fps_file, file_type, vendor_persist_type; type vendor_persist_fps_file, file_type, vendor_persist_type;
# Graphics
type vendor_sysfs_sde_crtc, fs_type, sysfs_type;
# Input Devices # Input Devices
type vendor_sysfs_input, sysfs_type, fs_type; type vendor_sysfs_input, sysfs_type, fs_type;

View file

@ -3,6 +3,9 @@ genfscon sysfs /devices/platform/egis_input u:object_r:v
genfscon sysfs /devices/platform/egis_input/navigation_enable u:object_r:vendor_sysfs_fingerprint:s0 genfscon sysfs /devices/platform/egis_input/navigation_enable u:object_r:vendor_sysfs_fingerprint:s0
genfscon sysfs /devices/platform/egis_input/navigation_event u:object_r:vendor_sysfs_fingerprint:s0 genfscon sysfs /devices/platform/egis_input/navigation_event u:object_r:vendor_sysfs_fingerprint:s0
# Graphics
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc- u:object_r:vendor_sysfs_sde_crtc:s0
# Health # Health
genfscon sysfs /devices/platform/soc/soc:mmi,charger/power_supply/mmi_battery u:object_r:vendor_sysfs_battery_supply:s0 genfscon sysfs /devices/platform/soc/soc:mmi,charger/power_supply/mmi_battery u:object_r:vendor_sysfs_battery_supply:s0
genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-02/1c40000.qcom,spmi:qcom,pm7250b@2:qcom,qpnp-smb5-mmi/power_supply/battery u:object_r:vendor_sysfs_battery_supply:s0 genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-02/1c40000.qcom,spmi:qcom,pm7250b@2:qcom,qpnp-smb5-mmi/power_supply/battery u:object_r:vendor_sysfs_battery_supply:s0

View file

@ -27,5 +27,9 @@ allow hal_power_default {
allow hal_power_default vendor_latency_device:chr_file rw_file_perms; allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
# Allow Power HAL to read and write to sde-crtc-*
allow hal_power_default vendor_sysfs_sde_crtc:file rw_file_perms;
allow hal_power_default vendor_sysfs_sde_crtc:dir r_dir_perms;
# Rule for hal_power_default to access graphics composer process # Rule for hal_power_default to access graphics composer process
unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default); unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default);