1allow kernel vendor_fw_file:dir r_dir_perms; 2allow kernel vendor_fw_file:file r_file_perms; 3 4# ZRam 5allow kernel per_boot_file:file r_file_perms; 6 7# memlat needs permision to create/delete perf events when hotplug on/off 8allow kernel self:capability2 perfmon; 9allow kernel self:perf_event cpu; 10 11userdebug_or_eng(` 12 allow kernel vendor_battery_debugfs:dir search; 13 allow kernel vendor_regmap_debugfs:dir search; 14 allow kernel vendor_usb_debugfs:dir search; 15 allow kernel vendor_votable_debugfs:dir search; 16 allow kernel vendor_charger_debugfs:dir search; 17 allow kernel vendor_maxfg_debugfs:dir search; 18') 19 20dontaudit kernel sepolicy_file:file getattr; 21dontaudit kernel system_bootstrap_lib_file:dir getattr; 22dontaudit kernel system_bootstrap_lib_file:file getattr; 23dontaudit kernel system_dlkm_file:dir getattr; 24