[ALPS04331194] FPSGO: add ioctl permission

[Detail]
add FPSGO ioctl permission

MTK-Commit-Id: 4466c4e3c548c134be6939fa50e4c8d3f37a257a

Change-Id: I0c10abd0e780f764ff423442ea3d1b6ed66177c6
CR-Id: ALPS04331194
Feature: FPSGO
This commit is contained in:
Poting Chen 2020-01-18 10:09:36 +08:00
parent a27e813df1
commit de970ad094
3 changed files with 19 additions and 0 deletions

View File

@ -20,3 +20,9 @@ allow appdomain mtk_cmdq_device:chr_file {open read ioctl};
# Purpose : Allow HWUI to access perfmgr # Purpose : Allow HWUI to access perfmgr
allow appdomain proc_perfmgr:dir search; allow appdomain proc_perfmgr:dir search;
allow appdomain proc_perfmgr:file { getattr open read ioctl}; allow appdomain proc_perfmgr:file { getattr open read ioctl};
allowxperm appdomain proc_perfmgr:file ioctl {
FPSGO_QUEUE
FPSGO_DEQUEUE
FPSGO_QUEUE_CONNECT
FPSGO_BQID
};

View File

@ -21,6 +21,12 @@ allow bootanim proc_ged:file {open read write ioctl getattr};
# Purpose : For MTK perfmgr # Purpose : For MTK perfmgr
allow bootanim proc_perfmgr:dir {search read}; allow bootanim proc_perfmgr:dir {search read};
allow bootanim proc_perfmgr:file {open read ioctl}; 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 # Date : WK19.11
# Operation : Migration # Operation : Migration

View File

@ -46,6 +46,13 @@ allow surfaceflinger mtkbootanimation:file { read getattr open };
# Purpose: Allow to access perfmgr # Purpose: Allow to access perfmgr
allow surfaceflinger proc_perfmgr:dir {read search}; allow surfaceflinger proc_perfmgr:dir {read search};
allow surfaceflinger proc_perfmgr:file {open read ioctl}; 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 # Date : WK17.43
# Operation : Debug # Operation : Debug