From a89c11643c311e3c9e8acf3bb2987d486ec7e2c7 Mon Sep 17 00:00:00 2001 From: Ajay Panicker Date: Tue, 11 Jul 2017 17:44:30 -0700 Subject: [PATCH] Allow collection of Bluetooth firmware dumps in bugreports (1/3) This patch is temporary and should be removed once the bug is resolved Bug: 63390057 Test: Force a hci_timeout and collect a bugreport Change-Id: I29d3f19462c152e785eec0291f06ed4c004b623f --- sepolicy/vendor/wcnss_filter.te | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sepolicy/vendor/wcnss_filter.te b/sepolicy/vendor/wcnss_filter.te index a6f39b82..fad40fbd 100644 --- a/sepolicy/vendor/wcnss_filter.te +++ b/sepolicy/vendor/wcnss_filter.te @@ -13,6 +13,12 @@ userdebug_or_eng(` allow wcnss_filter ramdump_vendor_data_file:dir create_dir_perms; allow wcnss_filter ramdump_vendor_data_file:file create_file_perms; r_dir_file(wcnss_filter, debugfs_ipc) + + allow wcnss_filter bluetooth_data_file:dir search; + allow wcnss_filter bluetooth_logs_data_file:dir rw_dir_perms; + allow wcnss_filter bluetooth_logs_data_file:file create_file_perms; + + r_dir_file(wcnss_filter, debugfs_ipc) ') # allow wcnss to set threads to RT priority