blob: 5561e3cd0ba475be7e64b3a4d0021bee61ec8f1c [file] [log] [blame]
# ==============================================
# Common SEPolicy Rule
# ==============================================
##########################
# proc files
#
# proc labeling can be further refined (longest matching prefix).
genfscon proc /ccci_lp_mem u:object_r:proc_ccci_lp_mem:s0
# Date : WK21.02
# Purpose : write proc/dynamic_debug/control
genfscon proc /dynamic_debug/control u:object_r:proc_dynamic_debug_control:s0
##########################
# sysfs files
#
# sysfs labels can be set by userspace.
genfscon sysfs /devices/platform/vibrator@0/leds/vibrator u:object_r:sysfs_vibrator:s0
genfscon sysfs /block/mmcblk0rpmb/size u:object_r:access_sys_file:s0
genfscon sysfs /devices/virtual/misc/mcupm u:object_r:sysfs_mcupm:s0
# Date : 2020/04/17
# Purpose : mtk Audio headset detect
genfscon sysfs /bus/platform/drivers/Accdet_Driver/state u:object_r:sysfs_headset:s0
genfscon sysfs /bus/platform/drivers/pmic-codec-accdet/state u:object_r:sysfs_headset:s0
# Date : WK20.20
# Operation: R migration
# Purpose : vbus voltage
genfscon sysfs /devices/platform/charger/ADC_Charger_Voltage u:object_r:sysfs_vbus:s0
genfscon sysfs /devices/platform/battery/ADC_Charger_Voltage u:object_r:sysfs_vbus:s0