You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
958 B
31 lines
958 B
# ==============================================
|
|
# Policy File of /system/bin/wmt_loader Executable File
|
|
|
|
|
|
# ==============================================
|
|
# Type Declaration
|
|
# ==============================================
|
|
type wmt_loader ,domain;
|
|
type wmt_loader_exec , exec_type, file_type, vendor_file_type;
|
|
|
|
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
init_daemon_domain(wmt_loader)
|
|
|
|
allow wmt_loader self:capability chown;
|
|
|
|
# Set the property
|
|
set_prop(wmt_loader, vendor_mtk_wmt_prop)
|
|
|
|
# add ioctl/open/read/write permission for wmt_loader with /dev/wmtdetect
|
|
allow wmt_loader wmtdetect_device:chr_file rw_file_perms;
|
|
|
|
# add ioctl/open/read/write permission for wmt_loader with /dev/stpwm
|
|
allow wmt_loader stpwmt_device:chr_file rw_file_perms;
|
|
allow wmt_loader devpts:chr_file rwx_file_perms;
|
|
|
|
# Date: 2019/06/14
|
|
# Operation : Migration
|
|
allow wmt_loader proc_wmtdbg:file setattr;
|