From 99633e904df89a9716ca1aab458867856cb4908a Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 5 Sep 2018 14:18:07 +0200 Subject: [PATCH] Support reading /sys/board_properties/virtualkeys.xxx for virtual keys on touchscreen --- sepolicy/board_properties.te | 4 ++++ sepolicy/genfs_contexts | 1 + 2 files changed, 5 insertions(+) create mode 100644 sepolicy/board_properties.te create mode 100644 sepolicy/genfs_contexts diff --git a/sepolicy/board_properties.te b/sepolicy/board_properties.te new file mode 100644 index 0000000..4ed75dc --- /dev/null +++ b/sepolicy/board_properties.te @@ -0,0 +1,4 @@ +type sysfs_board_properties, fs_type, sysfs_type; + +allow system_server sysfs_board_properties:dir search; +allow system_server sysfs_board_properties:file r_file_perms; diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts new file mode 100644 index 0000000..56e8950 --- /dev/null +++ b/sepolicy/genfs_contexts @@ -0,0 +1 @@ +genfscon sysfs /board_properties u:object_r:sysfs_board_properties:s0