diff --git a/non_plat/file.te b/non_plat/file.te index 42305ea..9abb05c 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -355,3 +355,7 @@ type sysfs_mmcblk, fs_type, sysfs_type; type aee_dipdebug_vendor_file, file_type, data_file_type; type netd_socket, file_type, coredomain_socket; + +# Date : WK19.27 +# Purpose: Android Migration for SVP +type proc_m4u, fs_type, proc_type; \ No newline at end of file diff --git a/non_plat/genfs_contexts b/non_plat/genfs_contexts index f579592..cf1f13e 100644 --- a/non_plat/genfs_contexts +++ b/non_plat/genfs_contexts @@ -128,3 +128,6 @@ genfscon sysfs /devices/platform/battery/Power_Off_Voltage u:object_r:sysfs_powe genfscon sysfs /devices/platform/battery/FG_daemon_disable u:object_r:sysfs_fg_disable:s0 genfscon sysfs /devices/platform/battery/disable_nafg u:object_r:sysfs_dis_nafg:s0 +# Date : WK19.27 +# Purpose: Android Migration for SVP +genfscon proc /m4u u:object_r:proc_m4u:s0 \ No newline at end of file diff --git a/non_plat/ioctl_defines b/non_plat/ioctl_defines index 39b2e27..d7ec7ee 100755 --- a/non_plat/ioctl_defines +++ b/non_plat/ioctl_defines @@ -58,3 +58,6 @@ define(`JPG_BRIDGE_ENC_IO_CONFIG', `0x780c') define(`JPG_BRIDGE_ENC_IO_WAIT', `0x780d') define(`JPG_BRIDGE_ENC_IO_DEINIT', `0x780e') define(`JPG_BRIDGE_ENC_IO_START', `0x780f') +##################################### +# m4u_priv.h +define(`MTK_M4U_T_SEC_INIT', `0x6732') diff --git a/non_plat/mediacodec.te b/non_plat/mediacodec.te index 7edfc22..e1f4cf5 100644 --- a/non_plat/mediacodec.te +++ b/non_plat/mediacodec.te @@ -16,10 +16,9 @@ allow mediacodec Vcodec_device:chr_file rw_file_perms; # Operation : Migration # Purpose : VP & VR dump and debug allow mediacodec M4U_device_device:chr_file rw_file_perms; -allow mediacodec proc:file {open read}; +allow mediacodec proc:file r_file_perms; allow mediacodec sysfs:file {read write open}; allow mediacodec debugfs_binder:dir search; -allow mediacodec proc:file { getattr ioctl }; allow mediacodec MTK_SMI_device:chr_file { ioctl read open }; allow mediacodec storage_file:lnk_file {read write open}; allow mediacodec tmpfs:dir search; @@ -143,3 +142,8 @@ set_prop(mediacodec, mtk_thermal_config_prop) allow mediacodec graphics_device:chr_file { ioctl open read }; allow mediacodec graphics_device:dir search; +# Date : WK19.27 +# Purpose: Android Migration for SVP +allow mediacodec proc_m4u:file r_file_perms; +allowxperm mediacodec proc_m4u:file ioctl MTK_M4U_T_SEC_INIT; +