From: Andreas Schneider Date: Thu, 21 Jan 2021 07:58:46 +0000 (+0100) Subject: common: Label /sys/devices/virtual/sec/switch/afc_disable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfbf33898df395045d5f238e87d0613e7c8b1520;p=GitHub%2FLineageOS%2Fandroid_device_samsung_slsi_sepolicy.git common: Label /sys/devices/virtual/sec/switch/afc_disable This is the fastcharge switch. Change-Id: Icc8a9c1ce0154f316e35e20a18be6c5a468d942e --- diff --git a/common/vendor/file.te b/common/vendor/file.te index 1dbf080..8d54e0b 100644 --- a/common/vendor/file.te +++ b/common/vendor/file.te @@ -35,6 +35,7 @@ type sysfs_input, sysfs_type, r_fs_type, fs_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; +type sysfs_sec_switch, sysfs_type, r_fs_type, fs_type; type sysfs_sec_touchscreen, sysfs_type, r_fs_type, fs_type; type sysfs_sim, sysfs_type, r_fs_type, fs_type; type sysfs_sensors, sysfs_type, r_fs_type, fs_type; @@ -51,6 +52,7 @@ type sysfs_sensorhub_writable, sysfs_type, rw_fs_type, fs_type; type sysfs_sensors_writable, sysfs_type, rw_fs_type, fs_type; type sysfs_sim_writable, sysfs_type, rw_fs_type, fs_type; type sysfs_spi_writeable, sysfs_type, rw_fs_type, fs_type; +type sysfs_sec_switch_writable, sysfs_type, rw_fs_type, fs_type; type sysfs_touchscreen_writable, sysfs_type, rw_fs_type, fs_type; type sysfs_wifi_writable, sysfs_type, rw_fs_type, fs_type; diff --git a/common/vendor/genfs_contexts b/common/vendor/genfs_contexts index 68f3cec..1354dac 100644 --- a/common/vendor/genfs_contexts +++ b/common/vendor/genfs_contexts @@ -40,6 +40,8 @@ genfscon sysfs /devices/virtual/sensors u:obje genfscon sysfs /devices/virtual/sensors/hidden_hole/hh_check_coef u:object_r:sysfs_sensors_writable:s0 genfscon sysfs /devices/virtual/sensors/ssp_sensor/enable u:object_r:sysfs_sensors_writable:s0 genfscon sysfs /devices/virtual/sensors/ssp_sensor/ssp_flush u:object_r:sysfs_sensors_writable:s0 +genfscon sysfs /devices/virtual/sec/switch u:object_r:sysfs_sec_switch:s0 +genfscon sysfs /devices/virtual/sec/switch/afc_disable u:object_r:sysfs_sec_switch_writable:s0 genfscon sysfs /devices/virtual/thermal u:object_r:sysfs_thermal:s0 genfscon sysfs /devices/virtual/timed_output/vibrator/cp_trigger_index u:object_r:sysfs_vibrator:s0 genfscon sysfs /devices/virtual/timed_output/vibrator/intensity u:object_r:sysfs_vibrator:s0