basic: non_plat: Import pixel rebalance_interrupts rules

Change-Id: Idb03fd0632995e52cc9b9f008bd46002a6cc1628
Signed-off-by: bengris32 <bengris32@protonmail.ch>
This commit is contained in:
bengris32 2023-09-05 13:12:00 +01:00
parent 1313d51047
commit 011d637e43
No known key found for this signature in database
GPG Key ID: 5C798EC5589ED9BF
4 changed files with 19 additions and 0 deletions

View File

@ -44,6 +44,7 @@ type proc_mtk_es_reg_dump, fs_type, proc_type;
type proc_ccci_dump, fs_type, proc_type;
type proc_log_much, fs_type, proc_type;
type proc_vm_dirty, fs_type, proc_type;
type proc_irq, fs_type, proc_type;
#For icusb
type proc_icusb, fs_type, proc_type;
@ -184,6 +185,7 @@ type sysfs_vcore_debug, fs_type, sysfs_type;
type sysfs_systracker, fs_type, sysfs_type;
type sysfs_keypad_file, fs_type, sysfs_type;
type sysfs_vcp, fs_type, sysfs_type;
type sysfs_irq, fs_type, sysfs_type;
# apusys_queue sysfs file
type sysfs_apusys_queue, fs_type, sysfs_type;

View File

@ -691,6 +691,8 @@
/(vendor|system/vendor)/bin/xcap u:object_r:xcap_exec:s0
/(vendor|system/vendor)/bin/rebalance_interrupts-vendor.mediatek u:object_r:rebalance_interrupts_vendor_exec:s0
/(vendor|system/vendor)/bin/biosensord_nvram u:object_r:biosensord_nvram_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]-service-mediatek u:object_r:mtk_hal_bluetooth_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.gnss@2\.1-service-mediatek u:object_r:mtk_hal_gnss_exec:s0

View File

@ -674,3 +674,7 @@ genfscon sysfs /devices/platform/13000000.mali/total_gpu_mem u:object_r:sysfs_gp
genfscon sysfs /devices/platform/13040000.mali/dma_buf_gpu_mem u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/13040000.mali/kprcs u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/13040000.mali/total_gpu_mem u:object_r:sysfs_gpu:s0
# IRQ
genfscon sysfs /kernel/irq u:object_r:sysfs_irq:s0
genfscon proc /irq u:object_r:proc_irq:s0

View File

@ -0,0 +1,11 @@
# rebalance_interrupts vendor
type rebalance_interrupts_vendor, domain;
type rebalance_interrupts_vendor_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(rebalance_interrupts_vendor)
allow rebalance_interrupts_vendor sysfs_irq:dir r_dir_perms;
allow rebalance_interrupts_vendor sysfs_irq:file r_file_perms;
allow rebalance_interrupts_vendor proc_irq:dir r_dir_perms;
allow rebalance_interrupts_vendor proc_irq:file { rw_file_perms setattr };
allow rebalance_interrupts_vendor self:capability { chown setuid setgid };