From b151556fc19329a5f83d6bd0cba8d5aa57f5b8e9 Mon Sep 17 00:00:00 2001 From: lokesh Date: Sat, 18 Jan 2020 10:08:39 +0800 Subject: [PATCH] [ALPS04340640] SELinux policy update bootanim.te Update bootanim.te file to allow IOCTL commands MTK-Commit-Id: 63b0669373adc7386aa445b2e617abde5e40bcbb Change-Id: I0e62af7c87040cd438e5e62171b830c6641e0e81 CR-Id: ALPS04340640 Feature: [Module]Settings --- non_plat/bootanim.te | 5 +++++ non_plat/ioctl_defines | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 non_plat/ioctl_defines diff --git a/non_plat/bootanim.te b/non_plat/bootanim.te index 91b6e86..bfdc71a 100644 --- a/non_plat/bootanim.te +++ b/non_plat/bootanim.te @@ -21,3 +21,8 @@ allow bootanim proc_ged:file {open read write ioctl getattr}; # Purpose : For MTK perfmgr allow bootanim proc_perfmgr:dir {search read}; allow bootanim proc_perfmgr:file {open read ioctl}; + +# Date : WK19.11 +# Operation : Migration +# Purpose : Allow to access ged for ioctl related functions +allowxperm bootanim proc_ged:file ioctl {PROC_GED_IOCTLCMD_1 PROC_GED_IOCTLCMD_3}; diff --git a/non_plat/ioctl_defines b/non_plat/ioctl_defines new file mode 100755 index 0000000..c7cbc39 --- /dev/null +++ b/non_plat/ioctl_defines @@ -0,0 +1,2 @@ +define(`PROC_GED_IOCTLCMD_1', `0x00006700') +define(`PROC_GED_IOCTLCMD_3', `0x00006765')