From de970ad0949b64cb0a4452fd68138fb3fcbc9622 Mon Sep 17 00:00:00 2001 From: Poting Chen Date: Sat, 18 Jan 2020 10:09:36 +0800 Subject: [PATCH] [ALPS04331194] FPSGO: add ioctl permission [Detail] add FPSGO ioctl permission MTK-Commit-Id: 4466c4e3c548c134be6939fa50e4c8d3f37a257a Change-Id: I0c10abd0e780f764ff423442ea3d1b6ed66177c6 CR-Id: ALPS04331194 Feature: FPSGO --- non_plat/app.te | 6 ++++++ non_plat/bootanim.te | 6 ++++++ non_plat/surfaceflinger.te | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/non_plat/app.te b/non_plat/app.te index e1f910e..354fd72 100644 --- a/non_plat/app.te +++ b/non_plat/app.te @@ -20,3 +20,9 @@ allow appdomain mtk_cmdq_device:chr_file {open read ioctl}; # Purpose : Allow HWUI to access perfmgr allow appdomain proc_perfmgr:dir search; allow appdomain proc_perfmgr:file { getattr open read ioctl}; +allowxperm appdomain proc_perfmgr:file ioctl { + FPSGO_QUEUE + FPSGO_DEQUEUE + FPSGO_QUEUE_CONNECT + FPSGO_BQID +}; diff --git a/non_plat/bootanim.te b/non_plat/bootanim.te index c6578c9..e9694a5 100644 --- a/non_plat/bootanim.te +++ b/non_plat/bootanim.te @@ -21,6 +21,12 @@ 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}; +allowxperm bootanim proc_perfmgr:file ioctl { + FPSGO_QUEUE + FPSGO_DEQUEUE + FPSGO_QUEUE_CONNECT + FPSGO_BQID +}; # Date : WK19.11 # Operation : Migration diff --git a/non_plat/surfaceflinger.te b/non_plat/surfaceflinger.te index dd2d230..f3bd2c4 100644 --- a/non_plat/surfaceflinger.te +++ b/non_plat/surfaceflinger.te @@ -46,6 +46,13 @@ allow surfaceflinger mtkbootanimation:file { read getattr open }; # Purpose: Allow to access perfmgr allow surfaceflinger proc_perfmgr:dir {read search}; allow surfaceflinger proc_perfmgr:file {open read ioctl}; +allowxperm surfaceflinger proc_perfmgr:file ioctl { + FPSGO_QUEUE + FPSGO_DEQUEUE + FPSGO_QUEUE_CONNECT + FPSGO_BQID + FPSGO_VSYNC +}; # Date : WK17.43 # Operation : Debug