From 8423a70e124a21d58a5abd84fbdd49d3a79e2d85 Mon Sep 17 00:00:00 2001 From: Leo Liou Date: Mon, 15 Nov 2021 14:33:57 +0800 Subject: [PATCH] sepolicy: hal_health_default: fix avc denied logs avc: denied { search } for comm="health@2.1-serv" name="/" dev="sda1" ino=3 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=1 avc: denied { search } for name="/" dev="sda1" ino=3 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=1 avc: denied { search } for name="vendor" dev="tmpfs" ino=2 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=1 avc: denied { search } for comm="health@2.1-serv" name="vendor" dev="tmpfs" ino=2 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=1 Bug: 205779737 Test: local build pass Change-Id: I2be76d97e35bff4e22075641b9031872d628e980 Signed-off-by: Leo Liou --- tracking_denials/hal_health_default.te | 3 --- whitechapel_pro/hal_health_default.te | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 tracking_denials/hal_health_default.te diff --git a/tracking_denials/hal_health_default.te b/tracking_denials/hal_health_default.te deleted file mode 100644 index 93ffd671..00000000 --- a/tracking_denials/hal_health_default.te +++ /dev/null @@ -1,3 +0,0 @@ -# b/205779737 -dontaudit hal_health_default mnt_vendor_file:dir { search }; -dontaudit hal_health_default persist_file:dir { search }; diff --git a/whitechapel_pro/hal_health_default.te b/whitechapel_pro/hal_health_default.te index 0befac1b..bdac85ac 100644 --- a/whitechapel_pro/hal_health_default.te +++ b/whitechapel_pro/hal_health_default.te @@ -1 +1,4 @@ +allow hal_health_default mnt_vendor_file:dir search; +allow hal_health_default persist_file:dir search; + set_prop(hal_health_default, vendor_battery_defender_prop)