type wifi_efs_file, file_type;
# PROC
+type proc_irq, fs_type, proc_type;
type proc_last_kmsg, fs_type, proc_type;
# SOCKETS
type sysfs_fingerprint, sysfs_type, r_fs_type, fs_type;
type sysfs_iio, sysfs_type, r_fs_type, fs_type;
type sysfs_input, sysfs_type, r_fs_type, fs_type;
+type sysfs_irq, fs_type, sysfs_type;
type sysfs_sec_gps, sysfs_type, r_fs_type, fs_type;
type sysfs_sec_key, sysfs_type, r_fs_type, fs_type;
type sysfs_sec_sensors, sysfs_type, r_fs_type, fs_type;
/(vendor|system/vendor)/bin/hw/macloader u:object_r:macloader_exec:s0
/(vendor|system/vendor)/bin/hw/sehradiomanager u:object_r:sehradiomanager_exec:s0
+/(vendor|system/vendor)/bin/rebalance_interrupts-vendor u:object_r:rebalance_interrupts_vendor_exec:s0
+
/(vendor|system/vendor)/lib(64)?/hw/gralloc\.exynos[0-9]*\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/hw/vulkan\.mali\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/libion_exynos\.so u:object_r:same_process_hal_file:s0
# genfs_contexts
### PROC
+genfscon proc /irq u:object_r:proc_irq:s0
genfscon proc /last_kmsg u:object_r:proc_last_kmsg:s0
### SYSFS
genfscon sysfs /devices/virtual/timed_output/vibrator/intensity u:object_r:sysfs_vibrator:s0
genfscon sysfs /devices/virtual/timed_output/vibrator/multi_freq u:object_r:sysfs_vibrator:s0
+genfscon sysfs /kernel/irq u:object_r:sysfs_irq:s0
+
genfscon sysfs /module/dhd/parameters u:object_r:sysfs_wifi_writable:s0
genfscon sysfs /power/cpufreq_max_limit u:object_r:sysfs_power_writable:s0
--- /dev/null
+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 };