summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremilchung <emilchung@google.com>2022-07-21 14:15:48 +0800
committerHsin-Lin Chung <emilchung@google.com>2022-07-25 14:55:21 +0000
commit036fcd643d00de8b92b1a669d4c18ed327c619d5 (patch)
tree0aa96685a9b4c47c212d23ba371f8264ac9dfbfa
parent1c090251d3da7c401a8401f9c9893b5505403974 (diff)
downloadcoral-sepolicy-036fcd643d00de8b92b1a669d4c18ed327c619d5.tar.gz
sensors: Mute the read unmounted files error with dontaudit.
avc: denied { read } for comm="sscrpcd" name="lsm6dsr_0.gyro" dev="sda2" ino=164 scontext=u:r:sensors:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0 Bug: 238466443 Test: Build pass. Change-Id: If7374381d3b42883cb361615505446bf6c8f9051 Merged-In: Ib112017b53af80f818544710d4fcb19f54fb1c69 Signed-off-by: emilchung <emilchung@google.com>
-rw-r--r--vendor/qcom/common/sensors.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/qcom/common/sensors.te b/vendor/qcom/common/sensors.te
index 5f57a89..5051b65 100644
--- a/vendor/qcom/common/sensors.te
+++ b/vendor/qcom/common/sensors.te
@@ -52,3 +52,6 @@ wakelock_use(sensors)
allow sensors sensors_vendor_data_file:dir rw_dir_perms;
allow sensors sensors_vendor_data_file:file create_file_perms;
+
+# Mutes the read unmounted files errors
+dontaudit sensors unlabeled:file r_file_perms;