Merge "[ALPS03868216] wlan_assistant: allow to write nvram to driver" into alps-trunk-p0.basic
Change-Id: I18ed46bd6239893ba6b40043f64b99e8687d8e9e MTK-Commit-Id: e94b9234714ce272cf8bb27b34c94a13cd687eed
This commit is contained in:
commit
9d09ef7e86
@ -540,6 +540,8 @@
|
|||||||
/(system\/vendor|vendor)/bin/lbs_hidl_service u:object_r:lbs_hidl_service_exec:s0
|
/(system\/vendor|vendor)/bin/lbs_hidl_service u:object_r:lbs_hidl_service_exec:s0
|
||||||
/(system\/vendor|vendor)/bin/meta_tst u:object_r:meta_tst_exec:s0
|
/(system\/vendor|vendor)/bin/meta_tst u:object_r:meta_tst_exec:s0
|
||||||
/(system\/vendor|vendor)/bin/pre_meta u:object_r:pre_meta_exec:s0
|
/(system\/vendor|vendor)/bin/pre_meta u:object_r:pre_meta_exec:s0
|
||||||
|
|
||||||
|
/(system\/vendor|vendor)/bin/wlan_assistant u:object_r:wlan_assistant_exec:s0
|
||||||
/(system\/vendor|vendor)/bin/wmt_loader u:object_r:wmt_loader_exec:s0
|
/(system\/vendor|vendor)/bin/wmt_loader u:object_r:wmt_loader_exec:s0
|
||||||
/(system\/vendor|vendor)/bin/spm_loader u:object_r:spm_loader_exec:s0
|
/(system\/vendor|vendor)/bin/spm_loader u:object_r:spm_loader_exec:s0
|
||||||
/(system\/vendor|vendor)/bin/ccci_mdinit u:object_r:ccci_mdinit_exec:s0
|
/(system\/vendor|vendor)/bin/ccci_mdinit u:object_r:ccci_mdinit_exec:s0
|
||||||
|
40
non_plat/wlan_assistant.te
Normal file
40
non_plat/wlan_assistant.te
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# ==============================================
|
||||||
|
# Policy File of /vendor/bin/wlan_assistant Executable File
|
||||||
|
|
||||||
|
# ==============================================
|
||||||
|
# Type Declaration
|
||||||
|
# ==============================================
|
||||||
|
type wlan_assistant_exec , exec_type, file_type, vendor_file_type;
|
||||||
|
type wlan_assistant ,domain;
|
||||||
|
|
||||||
|
# ==============================================
|
||||||
|
# MTK Policy Rule
|
||||||
|
# ==============================================
|
||||||
|
init_daemon_domain(wlan_assistant)
|
||||||
|
|
||||||
|
# Date : WK14.34
|
||||||
|
# Operation : Migration
|
||||||
|
# Purpose : for mtk debug mechanism. agpsd_data_file, mtk_agpsd are used
|
||||||
|
# to share wifi scan results with AGPS module. netlink_socket is used to
|
||||||
|
# listen events of wlan driver. udp_socket is used to do ioctl with wlan driver
|
||||||
|
# kernel-3.18 uses netlink_socket, but kernel-4.4 uses generic netlink_socket
|
||||||
|
allow wlan_assistant agpsd_data_file:sock_file write;
|
||||||
|
allow wlan_assistant mtk_agpsd:unix_dgram_socket sendto;
|
||||||
|
allow wlan_assistant agpsd_data_file:dir search;
|
||||||
|
### TBD, neverallowxperm on line 177 of system/sepolicy/public/domain.te
|
||||||
|
#allow wlan_assistant self:netlink_socket create_socket_perms;
|
||||||
|
allow wlan_assistant self:netlink_generic_socket create_socket_perms_no_ioctl;
|
||||||
|
allow wlan_assistant self:udp_socket { create ioctl };
|
||||||
|
|
||||||
|
# Date : WK18.17
|
||||||
|
# Operation : Migration
|
||||||
|
# Purpose : To allow wlan_assistant monitor /vendor/nvdata/APCFG/APRDEB,
|
||||||
|
# /storage/sdcard0, /vendor/firmware. Which can help to check if nvram,
|
||||||
|
# driver config or firmware config file are changed, if yes, will write it
|
||||||
|
# to wlan driver in time.
|
||||||
|
# allow wlan_assistant wifi_data_file:file { read getattr open };
|
||||||
|
# allow wlan_assistant wifi_data_file:dir { read search getattr open };
|
||||||
|
allow wlan_assistant nvdata_file:dir { search read getattr open };
|
||||||
|
allow wlan_assistant nvdata_file:file { read getattr open };
|
||||||
|
allow wlan_assistant sysfs:file { open read };
|
||||||
|
allow wlan_assistant wmtWifi_device:chr_file { read write getattr open };
|
Loading…
x
Reference in New Issue
Block a user