summaryrefslogtreecommitdiffstats
path: root/r_non_plat/mtk_wmt_launcher.te
blob: f0bc3606553805500aaa572db186ed3bbfc6f144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ==============================================
# Policy File of /system/bin/mtk_wmt_launcher Executable File


# ==============================================
# Type Declaration
# ==============================================
type mtk_wmt_launcher ,domain;
type mtk_wmt_launcher_exec , exec_type, file_type, vendor_file_type;

# ==============================================
# MTK Policy Rule
# ==============================================
init_daemon_domain(mtk_wmt_launcher)

# set the property
set_prop(mtk_wmt_launcher, wmt_prop)

# add ioctl/open/read/write permission for mtk_wmt_launcher with /dev/stpwmt
allow mtk_wmt_launcher stpwmt_device:chr_file rw_file_perms;
allow mtk_wmt_launcher devpts:chr_file rw_file_perms;
allow mtk_wmt_launcher system_file:dir { read open };

# Date : W18.01
# Add for turn on SElinux in enforcing mode
allow mtk_wmt_launcher vendor_file:dir { read open };