From f9552297fa6bb3c4c720d321aa52a346565f9d60 Mon Sep 17 00:00:00 2001 From: Star Chang Date: Thu, 6 Oct 2022 06:47:49 +0000 Subject: [PATCH] Add sepolicy for TWT to dumpstate Bug: 253348062 Test: dump bugreport ok Signed-off-by: Star Chang Change-Id: I0958fef496302df3f5e6e188f15117de78988a62 --- whitechapel_pro/file.te | 2 +- whitechapel_pro/genfs_contexts | 1 + whitechapel_pro/hal_dumpstate_default.te | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/whitechapel_pro/file.te b/whitechapel_pro/file.te index d20b6f58..e3a6bd52 100644 --- a/whitechapel_pro/file.te +++ b/whitechapel_pro/file.te @@ -56,7 +56,7 @@ type sysfs_soc, sysfs_type, fs_type; type sysfs_camera, sysfs_type, fs_type; type sysfs_write_leds, sysfs_type, fs_type; type sysfs_pca, sysfs_type, fs_type; - +type sysfs_ptracker, sysfs_type, fs_type; # debugfs type debugfs_f2fs, debugfs_type, fs_type; type vendor_maxfg_debugfs, fs_type, debugfs_type; diff --git a/whitechapel_pro/genfs_contexts b/whitechapel_pro/genfs_contexts index 85dc310d..9939bbf4 100644 --- a/whitechapel_pro/genfs_contexts +++ b/whitechapel_pro/genfs_contexts @@ -40,6 +40,7 @@ genfscon sysfs /devices/platform/10db0000.spi/spi_master/spi16/spi16.0/ieee80215 # WiFi genfscon sysfs /wifi u:object_r:sysfs_wifi:s0 +genfscon sysfs /wlan_ptracker u:object_r:sysfs_ptracker:s0 # ACPM genfscon sysfs /devices/platform/acpm_stats u:object_r:sysfs_acpm_stats:s0 diff --git a/whitechapel_pro/hal_dumpstate_default.te b/whitechapel_pro/hal_dumpstate_default.te index 21fa7025..11f2fc7e 100644 --- a/whitechapel_pro/hal_dumpstate_default.te +++ b/whitechapel_pro/hal_dumpstate_default.te @@ -45,6 +45,9 @@ allow hal_dumpstate_default mitigation_vendor_data_file:file r_file_perms; allow hal_dumpstate_default sysfs_wifi:dir r_dir_perms; allow hal_dumpstate_default sysfs_wifi:file r_file_perms; +allow hal_dumpstate_default sysfs_ptracker:dir r_dir_perms; +allow hal_dumpstate_default sysfs_ptracker:file r_file_perms; + allow hal_dumpstate_default sysfs_batteryinfo:dir r_dir_perms; allow hal_dumpstate_default sysfs_batteryinfo:file r_file_perms;