• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# MTK Policy Rule
3# ==============================================
4
5typeattribute mtkbootanimation coredomain;
6
7init_daemon_domain(mtkbootanimation)
8
9type mtkbootanimation_exec, system_file_type, exec_type, file_type;
10
11# Date : WK14.37
12# Operation : Migration
13# Purpose : for opetator
14set_prop(mtkbootanimation, system_mtk_bootani_prop)
15
16# Date W17.39
17# Operation Migration
18# Purpose : for mtk bootanimation
19
20hal_client_domain(mtkbootanimation, hal_configstore)
21hal_client_domain(mtkbootanimation, hal_graphics_allocator)
22hal_client_domain(mtkbootanimation, hal_graphics_composer)
23binder_use(mtkbootanimation)
24binder_call(mtkbootanimation, surfaceflinger)
25binder_call(mtkbootanimation, audioserver)
26hwbinder_use(mtkbootanimation)
27
28allow mtkbootanimation gpu_device:chr_file rw_file_perms;
29
30# /oem access
31allow mtkbootanimation oemfs:dir search;
32allow mtkbootanimation oemfs:file r_file_perms;
33
34allow mtkbootanimation audio_device:dir r_dir_perms;
35allow mtkbootanimation audio_device:chr_file rw_file_perms;
36
37allow mtkbootanimation surfaceflinger_service:service_manager find;
38
39# Allow access to ion memory allocation device
40allow mtkbootanimation ion_device:chr_file rw_file_perms;
41allow mtkbootanimation hal_graphics_allocator:fd use;
42
43# Fences
44allow mtkbootanimation hal_graphics_composer:fd use;
45
46# Read access to pseudo filesystems.
47#r_dir_file(mtkbootanimation, proc)
48allow mtkbootanimation proc_meminfo:file r_file_perms;
49r_dir_file(mtkbootanimation, cgroup)
50
51# System file accesses.
52allow mtkbootanimation system_file:dir r_dir_perms;
53
54# Date : WK14.32
55# Operation : Migration
56# Purpose : for playing boot tone
57allow mtkbootanimation mediaserver:binder {call transfer};
58allow mtkbootanimation mediaserver_service:service_manager find;
59
60# Purpose : for playing bootanimation audio
61allow mtkbootanimation audioserver:binder {call transfer};
62allow mtkbootanimation audioserver_service:service_manager find;
63
64# Date : WK14.37
65# Operation : Migration
66# Purpose : for opetator
67set_prop(mtkbootanimation, debug_prop)
68
69# Date : WK14.46
70# Operation : Migration
71# /data/resource-cache
72allow mtkbootanimation resourcecache_data_file:dir search;
73allow mtkbootanimation resourcecache_data_file:file { read getattr open };
74
75# Data : WK16.42
76# Operator: Whitney bring up
77# Purpose: call surfaceflinger due to powervr
78allow mtkbootanimation surfaceflinger:fifo_file rw_file_perms;
79
80# Date : W16.42
81# Operation : Integration
82# Purpose : DRM / DRI GPU driver required
83
84allow mtkbootanimation gpu_device:dir search;
85
86