sepolicy : Add rule to set property for wlan driver/fw ver info

wlan driver/fw version are set at property at enforcing mode.
Add rules to allow to set wlan driver/fw version info

CRs-Fixed: 2460816
Change-Id: Ic0bb570cd53fe450512496c5864f432ce3219bbe
This commit is contained in:
Vinay Gannevaram 2019-05-28 19:52:53 +05:30 committed by Aayush Gupta
parent 249759bf00
commit b8d409439e
4 changed files with 10 additions and 0 deletions

View File

@ -6,3 +6,5 @@
# wmtWifi is wifi char device file to control wifi driver.
allow hal_wifi wmtWifi_device:chr_file w_file_perms;
# Write wlan driver/fw version into property
set_prop(hal_wifi_default, vendor_wifi_version)

View File

@ -327,3 +327,5 @@ type mtk_nn_option_prop, property_type;
#============system wfc service property===========
type mtk_wfc_serv_prop, property_type;
# Wifi version recorder
type vendor_wifi_version, property_type;

View File

@ -367,3 +367,6 @@ ro.vendor.mtk_nn.option u:object_r:mtk_nn_option_prop:s0
#============system wfc service property===========
persist.vendor.wfc. u:object_r:mtk_wfc_serv_prop:s0
# Wifi version recorder
vendor.wlan.driver.version u:object_r:vendor_wifi_version:s0
vendor.wlan.firmware.version u:object_r:vendor_wifi_version:s0

View File

@ -79,3 +79,6 @@ set_prop(vendor_init, mtk_powerhal_prop)
# mmstat tracer
allow vendor_init debugfs_tracing_instances:dir create_dir_perms;
allow vendor_init debugfs_tracing_instances:file w_file_perms;
# Wifi version recorder
set_prop(vendor_init, vendor_wifi_version)