aosp12/device/mediatek/wembley-sepolicy/non_plat/mtk_wmt_launcher.te

26 lines
913 B
Plaintext

# ==============================================
# 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, vendor_mtk_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 };