From 31c487c2988fe6d1fa5cdc15e44d25a15007fa5f Mon Sep 17 00:00:00 2001 From: pankaj jangir Date: Sat, 18 Jan 2020 10:16:01 +0800 Subject: [PATCH] [ALPS04669482] Added SELinux policy for mediaswcodec Add file & dir permission on gpu, proc_ged, and debugfs_ion MTK-Commit-Id: b27f71d9a9c557042c7844b034d26c5a58895204 Change-Id: Ie0dce4d5fba5cfdce1b76cdd8706d81f010a3771 CR-Id: ALPS04669482 Feature: Video Player --- non_plat/mediaswcodec.te | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 non_plat/mediaswcodec.te diff --git a/non_plat/mediaswcodec.te b/non_plat/mediaswcodec.te new file mode 100755 index 0000000..ca64913 --- /dev/null +++ b/non_plat/mediaswcodec.te @@ -0,0 +1,11 @@ +# ============================================== +# MTK Policy Rule +# ============================================== + +# Date : WK19.25 +# Operation : Migration +# Purpose : [ALPS04669482] DRTS failed due to avc denied +allow mediaswcodec debugfs_ion:dir rw_dir_perms; +allow mediaswcodec gpu_device:dir rw_dir_perms; +allow mediaswcodec dri_device:chr_file rw_file_perms; +allow mediaswcodec gpu_device:chr_file rw_file_perms;