diff --git a/sepolicy/file.te b/sepolicy/file.te index dcc9aa3b..37eba2ae 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -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; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 6fa1a836..17c50578 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -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 diff --git a/sepolicy/hal_dumpstate_impl.te b/sepolicy/hal_dumpstate_impl.te index af7aac09..9b5cc096 100644 --- a/sepolicy/hal_dumpstate_impl.te +++ b/sepolicy/hal_dumpstate_impl.te @@ -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) ')