diff --git a/non_plat/aee_aedv.te b/non_plat/aee_aedv.te index 497459c..369544a 100644 --- a/non_plat/aee_aedv.te +++ b/non_plat/aee_aedv.te @@ -405,6 +405,7 @@ get_prop(aee_aedv, vendor_default_prop) allow aee_aedv para_block_device:blk_file rw_file_perms; allow aee_aedv aee_dumpsys_vendor_file:file ioctl; allowxperm aee_aedv aee_dumpsys_vendor_file:file ioctl FS_IOC_FIEMAP; +allow aee_aedv mrdump_device:blk_file rw_file_perms; #data/dipdebug allow aee_aedv aee_dipdebug_vendor_file:dir r_dir_perms; @@ -413,4 +414,4 @@ allow aee_aedv proc_isp_p2:dir r_dir_perms; allow aee_aedv proc_isp_p2:file r_file_perms; allow aee_aedv connsyslog_data_vendor_file:file r_file_perms; -allow aee_aedv connsyslog_data_vendor_file:dir r_dir_perms; \ No newline at end of file +allow aee_aedv connsyslog_data_vendor_file:dir r_dir_perms; diff --git a/non_plat/device.te b/non_plat/device.te index a03c772..abe58e9 100644 --- a/non_plat/device.te +++ b/non_plat/device.te @@ -228,6 +228,7 @@ type mtk_dfrc_device, dev_type; type vbmeta_block_device, dev_type; type alarm_device, dev_type; type mdp_device, dev_type; +type mrdump_device, dev_type; ########################## # Sensor common Devices Start diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 39daae4..f2511d1 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -664,3 +664,6 @@ # Purpose: OpenCL feature requirments /vendor/lib(64)?/libOpenCL\.so u:object_r:same_process_hal_file:s0 +#MRDUMP +/dev/block/platform/bootdevice/by-name/mrdump(/.*)? u:object_r:mrdump_device:s0 +