From 244521b64e1b55ec4ccd0d48eca4f528e4865e1e Mon Sep 17 00:00:00 2001 From: sreeshankark Date: Sat, 21 Oct 2023 18:51:50 +0530 Subject: [PATCH] sepolicy: qti: allow `vendor_rmt_storage` to read sysfs file rmt_storage: type=1400 audit(0.0:17): avc: denied { read } for name="name" dev="sysfs" ino=58041 scontext=u:r:vendor_rmt_storage:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --- sepolicy/qti/vendor/vendor_rmt_storage.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sepolicy/qti/vendor/vendor_rmt_storage.te b/sepolicy/qti/vendor/vendor_rmt_storage.te index 4ec4151..b7283d0 100644 --- a/sepolicy/qti/vendor/vendor_rmt_storage.te +++ b/sepolicy/qti/vendor/vendor_rmt_storage.te @@ -1,5 +1,7 @@ allow vendor_rmt_storage vendor_reserve_partition:blk_file rw_file_perms; +allow vendor_rmt_storage sysfs:file read; + get_prop(vendor_rmt_storage, vendor_radio_prop) rw_dir_file(vendor_rmt_storage, vendor_proc_engineer)