diff options
author | Ben Lai <ben.lai@mediatek.com> | 2019-07-17 14:02:41 +0800 |
---|---|---|
committer | Ben Lai <ben.lai@mediatek.com> | 2019-07-17 14:02:41 +0800 |
commit | f5047d8b7abbc4f4adce38301741a91ba53895ca (patch) | |
tree | 1296bc9fcbb628aa9d9da40ef9ebecbeeb7f7321 | |
parent | 90ca8ed634df094a119de00fe68120697b59c085 (diff) | |
download | wembley-sepolicy-f5047d8b7abbc4f4adce38301741a91ba53895ca.tar.gz |
[ALPS04669137] wlan: Add support for sap's property
Add support for sap's property.
Change-Id: I9bfaccde83cbd3032714ff09baf974622b67eeae
CR-Id: ALPS04669137
Feature: Wi-Fi Tethering
-rw-r--r-- | non_plat/property.te | 2 | ||||
-rw-r--r-- | non_plat/property_contexts | 2 | ||||
-rw-r--r-- | non_plat/vendor_init.te | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/non_plat/property.te b/non_plat/property.te index 86b6189..ec7f67d 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -315,3 +315,5 @@ type mtk_powerhal_prop, property_type; #=============MTK Wifi wlan_assistant property============= type mtk_nvram_ready_prop, property_type, mtk_core_property_type; +#=============allow wifi hotspot to read property=========== +type mtk_wifi_hotspot_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index f2b9749..7b077fd 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -342,3 +342,5 @@ vendor.powerhal. u:object_r:mtk_powerhal_prop:s0 #=============MTK Wifi wlan_assistant property============= vendor.mtk.nvram.ready u:object_r:mtk_nvram_ready_prop:s0 +#=============Wi-Fi Hotspot============== +wifi.sap.interface u:object_r:mtk_wifi_hotspot_prop:s0 diff --git a/non_plat/vendor_init.te b/non_plat/vendor_init.te index 5b37552..5f13164 100644 --- a/non_plat/vendor_init.te +++ b/non_plat/vendor_init.te @@ -66,3 +66,5 @@ allow vendor_init kernel:key search; # Purpose: /dev/block/mmcblk0p10 allow vendor_init expdb_block_device:blk_file rw_file_perms; + +set_prop(vendor_init, mtk_wifi_hotspot_prop)
\ No newline at end of file |