From 45e33146f1c9ccbe01b17f5b26e079e11df52157 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Mon, 15 Mar 2021 09:41:48 +0800 Subject: [PATCH] Allow bluetooth hal to get boot status [ 5.299448] type=1400 audit(1615772363.892:3): avc: denied { read } for comm="bluetooth@1.1-s" name="u:object_r:boot_status_prop:s0" dev="tmpfs" ino=81 scontext=u:r:hal_bluetooth_btlinux:s0 tcontext=u:object_r:boot_status_prop:s0 tclass=file permissive=1 Bug: 171942789 Test: boot and see such log no longer appear Change-Id: Ib27585183be1ba9913b5f0620d987f26fad663e0 --- whitechapel/vendor/google/hal_bluetooth_btlinux.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel/vendor/google/hal_bluetooth_btlinux.te b/whitechapel/vendor/google/hal_bluetooth_btlinux.te index f7096836..3299ffe8 100644 --- a/whitechapel/vendor/google/hal_bluetooth_btlinux.te +++ b/whitechapel/vendor/google/hal_bluetooth_btlinux.te @@ -1,4 +1,5 @@ add_hwservice(hal_bluetooth_btlinux, hal_bluetooth_coexistence_hwservice); +get_prop(hal_bluetooth_btlinux, boot_status_prop) allow hal_bluetooth_btlinux sysfs_bluetooth_writable:file rw_file_perms; allow hal_bluetooth_btlinux proc_bluetooth_writable:file rw_file_perms;