2020-01-18 09:29:32 +08:00
|
|
|
# ==============================================
|
|
|
|
# MTK Policy Rule
|
|
|
|
# ============
|
|
|
|
|
|
|
|
# Date : WK16.33
|
|
|
|
# Purpose: Allow to access ged for gralloc_extra functions
|
2020-01-18 10:12:00 +08:00
|
|
|
allow appdomain proc_ged:file rw_file_perms;
|
|
|
|
allowxperm appdomain proc_ged:file ioctl {
|
|
|
|
GED_BRIDGE_IO_LOG_BUF_GET
|
2020-01-18 10:12:25 +08:00
|
|
|
GED_BRIDGE_IO_LOG_BUF_WRITE
|
|
|
|
GED_BRIDGE_IO_BOOST_GPU_FREQ
|
2020-01-18 10:12:00 +08:00
|
|
|
GED_BRIDGE_IO_MONITOR_3D_FENCE
|
|
|
|
GED_BRIDGE_IO_QUERY_INFO
|
2020-01-18 10:12:25 +08:00
|
|
|
GED_BRIDGE_IO_GE_ALLOC
|
|
|
|
GED_BRIDGE_IO_GE_GET
|
|
|
|
GED_BRIDGE_IO_GE_SET
|
2020-01-18 10:12:00 +08:00
|
|
|
};
|
2020-01-18 09:29:32 +08:00
|
|
|
|
|
|
|
# Date : W16.42
|
|
|
|
# Operation : Integration
|
|
|
|
# Purpose : DRM / DRI GPU driver required
|
|
|
|
allow appdomain gpu_device:dir search;
|
|
|
|
|
|
|
|
# Date : W17.30
|
|
|
|
# Purpose : Allow MDP user access cmdq driver
|
|
|
|
allow appdomain mtk_cmdq_device:chr_file {open read ioctl};
|
|
|
|
|
|
|
|
# Date : W17.41
|
|
|
|
# Operation: SQC
|
|
|
|
# Purpose : Allow HWUI to access perfmgr
|
|
|
|
allow appdomain proc_perfmgr:dir search;
|
|
|
|
allow appdomain proc_perfmgr:file { getattr open read ioctl};
|
2020-01-18 10:09:36 +08:00
|
|
|
allowxperm appdomain proc_perfmgr:file ioctl {
|
|
|
|
FPSGO_QUEUE
|
|
|
|
FPSGO_DEQUEUE
|
|
|
|
FPSGO_QUEUE_CONNECT
|
|
|
|
FPSGO_BQID
|
|
|
|
};
|