From 83ec002a33990491e73565c27fa7f1e49a851355 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 22 Mar 2020 13:28:10 +0100 Subject: [PATCH] common: Label sysfs fingerping nodes Change-Id: I0bb666f4a070eb400e18e0080e193d40bcc7a694 --- common/vendor/file.te | 1 + common/vendor/genfs_contexts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/common/vendor/file.te b/common/vendor/file.te index 6387222..1fb97e3 100644 --- a/common/vendor/file.te +++ b/common/vendor/file.te @@ -6,6 +6,7 @@ type conn_vendor_data_file, file_type, data_file_type; type wifi_vendor_data_file, file_type, data_file_type; ### SYSFS +type sysfs_fingerprint, sysfs_type, r_fs_type, fs_type; type sysfs_wifi, sysfs_type, r_fs_type, fs_type; type sysfs_backlight_writable, sysfs_type, rw_fs_type, fs_type; diff --git a/common/vendor/genfs_contexts b/common/vendor/genfs_contexts index a530de5..3b60017 100644 --- a/common/vendor/genfs_contexts +++ b/common/vendor/genfs_contexts @@ -2,10 +2,14 @@ ### SYSFS genfscon sysfs /class/backlight/ u:object_r:sysfs_backlight_writable:s0 +genfscon sysfs /class/fingerprint/fingerprint u:object_r:sysfs_fingerprint:s0 genfscon sysfs /class/timed_output/vibrator/intensity u:object_r:sysfs_vibrator:s0 genfscon sysfs /class/timed_output/vibrator/multi_freq u:object_r:sysfs_vibrator:s0 + genfscon sysfs /devices/platform/panel@0/backlight/panel/brightness u:object_r:sysfs_backlight_writable:s0 genfscon sysfs /devices/platform/panel@0/backlight/panel/max_brightness u:object_r:sysfs_backlight_writable:s0 + +genfscon sysfs /devices/virtual/fingerprint/fingerprint u:object_r:sysfs_fingerprint:s0 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 /devices/virtual/timed_output/vibrator/cp_trigger_index u:object_r:sysfs_vibrator:s0 -- 2.20.1