From 574ebbacf81813c0c4aa5d317d144cfabc40996a Mon Sep 17 00:00:00 2001 From: George Lee Date: Thu, 19 Jan 2023 14:19:05 -0800 Subject: [PATCH] selinux: fix mitigation_vendor_file access Bug: 266118091 Test: Local test to confirm error doesn't show up Change-Id: Ie9e55230211f20efc7bba448bfc335799d0e1d56 Signed-off-by: George Lee --- vendor/pixelstats_vendor.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/pixelstats_vendor.te b/vendor/pixelstats_vendor.te index 49c2b410..f8c399f4 100644 --- a/vendor/pixelstats_vendor.te +++ b/vendor/pixelstats_vendor.te @@ -5,5 +5,5 @@ allow pixelstats_vendor battery_history_device:chr_file r_file_perms; allow pixelstats_vendor sysfs_bcl:dir search; allow pixelstats_vendor sysfs_bcl:file r_file_perms; allow pixelstats_vendor mitigation_vendor_data_file:dir search; -allow pixelstats_vendor mitigation_vendor_data_file:file { read write }; +allow pixelstats_vendor mitigation_vendor_data_file:file rw_file_perms; get_prop(pixelstats_vendor, vendor_brownout_reason_prop);