Commit db35c4b6 authored by fire855's avatar fire855
Browse files

sepolicy: add rules for mtk pq & power hal and newer hwc

parent a257f74c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
attribute mtk_property_type;

# PQ
attribute hal_pq;
attribute hal_pq_client;
attribute hal_pq_server;
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
/(system|system\/vendor|vendor)/bin/ged_srv                     u:object_r:ged_srv_exec:s0
/(system|system\/vendor|vendor)/bin/spm_loader                  u:object_r:spm_loader_exec:s0
/(system|system\/vendor|vendor)/bin/teed                        u:object_r:tkcore_exec:s0
/(system|system\/vendor|vendor)/bin/hw/vendor.mediatek.hardware.power@1.1-service           u:object_r:mtk_hal_power_exec:s0
/(system|system\/vendor|vendor)/bin/hw/vendor.mediatek.hardware.pq@2.0-service              u:object_r:mtk_hal_pq_exec:s0

# exfat & ntfs
/system/bin/mkfs\.exfat                                         u:object_r:mkfs_exec:s0
+4 −0
Original line number Diff line number Diff line
@@ -7,4 +7,8 @@ allow hal_graphics_composer_default proc_m4u:file r_file_perms;
allow hal_graphics_composer_default proc_mtk_cmdq:file r_file_perms;
allow hal_graphics_composer_default proc_chip_hwcode:file r_file_perms;

allow hal_graphics_composer_default cmdq_device:chr_file r_file_perms;

allow hal_graphics_composer_default self:netlink_kobject_uevent_socket { create bind setopt read };

set_prop(hal_graphics_composer_default, pq_conf_prop)
+2 −0
Original line number Diff line number Diff line
type mtk_hal_rild_hwservice, hwservice_manager_type;
type mtk_hal_power_hwservice, hwservice_manager_type;
type mtk_hal_pq_hwservice, hwservice_manager_type;
+2 −0
Original line number Diff line number Diff line
vendor.mediatek.hardware.radio::IRadio                      u:object_r:mtk_hal_rild_hwservice:s0
vendor.mediatek.hardware.radio::ISap                        u:object_r:mtk_hal_rild_hwservice:s0
vendor.mediatek.hardware.radio.deprecated::IOemHook         u:object_r:mtk_hal_rild_hwservice:s0
vendor.mediatek.hardware.power::IPower                      u:object_r:mtk_hal_power_hwservice:s0
vendor.mediatek.hardware.pq::IPictureQuality                u:object_r:mtk_hal_pq_hwservice:s0
Loading