Add sepolicy rule to dump IPC related info

Required to collect IPC port/service ID information from
debugfs when bugreport is generated.

BUG: 36859850
Test: Collected bugreport and verified that this information is
      present in dumpstate-board.txt

Change-Id: I3573fe4b219218816b51c8171412d6f99b18e554
This commit is contained in:
Vinay Kalia
2017-05-05 11:16:59 -07:00
parent 1228761954
commit 983408a8d0
3 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ type debugfs_rpm, debugfs_type, fs_type;
type debugfs_rmt_storage, debugfs_type, fs_type;
type debugfs_usb, debugfs_type, fs_type;
type debugfs_wlan, debugfs_type, fs_type;
type debugfs_ipc, debugfs_type, fs_type;
# /proc
type proc_wifi_dbg, fs_type;

View File

@@ -168,6 +168,7 @@
/sys/kernel/debug/tcpm/usbpd0 u:object_r:debugfs_usb:s0
/sys/kernel/debug/pd_engine/usbpd0 u:object_r:debugfs_usb:s0
/sys/kernel/debug/ipc_logging/smblib/log u:object_r:debugfs_usb:s0
/sys/kernel/debug/msm_ipc_router(/.*)? u:object_r:debugfs_ipc:s0
# files in /system
/system/bin/init\.power\.sh u:object_r:init_power_exec:s0

View File

@@ -19,6 +19,8 @@ userdebug_or_eng(`
allow hal_dumpstate_impl radio_data_file:file r_file_perms;
allow hal_dumpstate_impl radio_vendor_data_file:file r_file_perms;
allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
allow hal_dumpstate_impl debugfs_ipc:dir r_dir_perms;
allow hal_dumpstate_impl debugfs_ipc:file r_file_perms;
set_prop(hal_dumpstate_impl, modem_diag_prop)
')