From da87b285af4b53b7ba01dd1f99ef4d04490018a2 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 19 Mar 2022 14:13:05 +0100 Subject: [PATCH] mondrianwifi: selinux sensors --- sepolicy/common/file_contexts | 3 +++ sepolicy/common/hal_sensors_default.te | 1 + 2 files changed, 4 insertions(+) create mode 100644 sepolicy/common/hal_sensors_default.te diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index daa8b5a..b81c892 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -11,3 +11,6 @@ # system files /(vendor|system/vendor)/bin/init\.input\.sh u:object_r:qti_init_shell_exec:s0 + +# sensors +/data/inv_cal_data.bin u:object_r:sensors_data_file:s0 diff --git a/sepolicy/common/hal_sensors_default.te b/sepolicy/common/hal_sensors_default.te new file mode 100644 index 0000000..fc88ff2 --- /dev/null +++ b/sepolicy/common/hal_sensors_default.te @@ -0,0 +1 @@ +allow hal_sensors_default sensors_data_file:file create_file_perms;