diff options
author | yuhui.zhang <yuhui.zhang@mediatek.com> | 2020-03-09 16:29:39 +0800 |
---|---|---|
committer | Yuhui Zhang <yuhui.zhang@mediatek.com> | 2020-03-10 14:19:35 +0800 |
commit | 03b513e734fccdf76920a46db91eaa4955f975d6 (patch) | |
tree | edbc727b56fab75726f815cfb876264bdfd65662 | |
parent | 4f43181a8660195dbe68c37c57d4c8e1c2892798 (diff) | |
download | wembley-sepolicy-03b513e734fccdf76920a46db91eaa4955f975d6.tar.gz |
[ALPS04958679] EM:remove phone UID
[Detail]
1. Move em hidl definition from non_plat to public
2. Remove EM sepolicy rules from radio.te
Change-Id: Id818343a3d7d3a24e425b38aed697e46994b8a93
CR-Id: ALPS04958679
Feature: Engineering Mode
-rw-r--r-- | non_plat/attributes | 6 | ||||
-rw-r--r-- | non_plat/radio.te | 152 | ||||
-rw-r--r-- | plat_public/attributes | 6 |
3 files changed, 6 insertions, 158 deletions
diff --git a/non_plat/attributes b/non_plat/attributes index 9f50d0e..3c2632a 100644 --- a/non_plat/attributes +++ b/non_plat/attributes @@ -52,12 +52,6 @@ attribute mtk_hal_log; attribute mtk_hal_log_client; attribute mtk_hal_log_server; -# Date: 2018/06/26 -# em hidl -attribute mtk_hal_em; -attribute mtk_hal_em_client; -attribute mtk_hal_em_server; - # Date: 2018/07/02 # MDP HIDL attribute hal_mms; diff --git a/non_plat/radio.te b/non_plat/radio.te index ac42f1f..e81853d 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -6,40 +6,6 @@ allow radio sysfs_keypad_file:dir { r_dir_perms }; allow radio sysfs_keypad_file:file { w_file_perms }; -# Date : WK15.34 2015/08/21 -# Operation : IT -# Purpose : for engineermode WFD IOT property -allow radio surfaceflinger:fifo_file { rw_file_perms }; - -# Date : 2016/06/11 -# Operation : IT -# Purpose : for engineermode Usb PHY Tuning -allow radio debugfs_usb20_phy:file { read open getattr }; -allow radio debugfs_usb20_phy:dir search; - -# Date : WK14.38 2016/06/28 -# Operation : Migration -# Purpose : for engineermode -allow radio mt_otg_test_device:chr_file { read write ioctl open }; -allow radio mtgpio_device:chr_file { read ioctl open }; -allow radio stpbt_device:chr_file { read write open }; -allow radio stpant_device:chr_file { read write open }; -allow radio bt_int_adp_socket:sock_file write; -allow radio mt6605_device:chr_file { read write ioctl open getattr }; -allow radio nfc_socket:dir { write add_name remove_name search }; -allow radio system_prop:property_service set; - -# Date : WK14.38 2016/06/28 -# Operation : Migration -# Purpose : for engineermode -allow radio em_svr:unix_stream_socket connectto; - -# Date : WK15.25 2016/06/28 -# Operation :N Migration -# Purpose : for engineermode WiFi test mode -# todo: in the feature Google maybe forbid this option,we should use other way -allowxperm radio self:udp_socket ioctl { SIOCIWFIRSTPRIV-SIOCIWFIRSTPRIV_09 SIOCIWFIRSTPRIV_0B SIOCSIWESSID SIOCSIWMODE }; - # Date : 2014/12/13 # Operation : IT # Purpose : for bluetooth relayer mode @@ -60,27 +26,12 @@ allow radio media_rw_data_file:file { create_file_perms }; # Swift APK integration - access ccci dir/file allow radio ccci_fsd:dir { r_dir_perms }; -# Date : 2016/07/25 -# Operation : Bluetooth access NVRAM fail in Engineer Mode -# Purpose : for Bluetooth read NVRAM data -allow radio nvdata_file:dir search; -allow radio nvdata_file:file rw_file_perms; - -#Date : 2016/11/08 -#Operation: IT -#Purpose: for EM set persist.net.auto.tethering -set_prop(radio, mtk_em_net_auto_tethering_prop) # Date : WK17.03 # Operation : O Migration # Purpose : HIDL for rilproxy binder_call(radio, hal_telephony) -# Date : WK17.15 -# Operation : O Migration -# Purpose : for YGPS execution -allow radio hal_graphics_composer_default:fd use; - #Dat: 2017/02/14 #Purpose: allow get telephony Sensitive property get_prop(radio, mtk_telephony_sensitive_prop) @@ -100,79 +51,11 @@ hal_client_domain(radio, hal_imsa) #allow radio hal_audio_hwservice:hwservice_manager find; binder_call(radio,mtk_hal_audio) -# TODO : Will move to plat_private when SEPolicy split done -# Date : WK1727 2017/07/19 -# Operation : Migration -# Purpose : Allow EM set usb property -set_prop(radio, system_radio_prop) - -#Dat: 2017/07/20 -#Purpose: NFC EM -allow radio hal_nfc_hwservice:hwservice_manager find; -binder_call(radio, hal_nfc) -binder_call(hal_nfc, radio) -hwbinder_use(radio); -#hal_client_domain(radio, hal_nfc) -typeattribute radio halclientdomain; -typeattribute radio hal_nfc_client; -allow radio nfc_socket:sock_file { create write unlink setattr }; -set_prop(radio, system_prop) - -# Date : WK1734 2017/08/23 -# Purpose : Allow EM use power HAL -allow radio mtk_hal_power_hwservice:hwservice_manager find; -binder_call(radio, mtk_hal_power) - -# Date : 2017/10/31 -# Purpose: Policy for EM to set wcn coredump property -get_prop(radio, wmt_prop) - # Date : WK18.16 # Operation: P migration # Purpose: Allow radio to get tel_switch_prop get_prop(radio, tel_switch_prop) -# Date : 2018/05/03 -# Operation: P migration -# Purpose: allow EM to set modem reset delay property -get_prop(radio, mtk_debug_md_reset_prop) - -# Date : 2018/06/01 -# Operation : P migration -# Purpose : For EM access battery info -allow radio sysfs_batteryinfo:dir search; -#allow radio sysfs_batteryinfo:file { read write getattr open create}; -allow radio sysfs_vbus:file { read getattr open }; -allow radio sysfs_battery_consumption:file r_file_perms; -allow radio sysfs_power_on_vol:file r_file_perms; -allow radio sysfs_power_off_vol:file r_file_perms; -allow radio sysfs_fg_disable:file w_file_perms; -allow radio sysfs_dis_nafg:file w_file_perms; - -# Date : 2018/06/15 -# Purpose : Allow EM access touchscreen settings -allow radio sysfs_tpd_debug:dir { search read open }; -allow radio sysfs_tpd_setting:dir { search read open }; - -# Date : 2018/06/15 -# Purpose : mtk EM PMU reading/setting -allow radio sysfs_pmu:dir { search }; -allow radio sysfs_pmu:file { read }; -allow radio sysfs_pmu:lnk_file { read }; - -# Date : 2018/06/15 -# Purpose : mtk EM Power debug_log setting -allow radio sysfs_spm:dir { search }; - -# Date : 2018/06/15 -# Purpose: Allow EM detect Audio headset status -allow radio sysfs_headset:file { read open }; - -# Date : 2018/06/26 -# Operation : IT -# Purpose : Allow to use HAL em -hal_client_domain(radio, mtk_hal_em) - # Date : 2018/07/03 # Purpose : Allow sim system to set prop set_prop(radio, vendor_sim_system_prop) @@ -195,42 +78,7 @@ set_prop(radio, mtk_telecom_vibrate) # Purpose : Allow to use mtk_gprs_attach_type set_prop(radio, mtk_gprs_attach_type) -# Date : 2018/07/12 -# Purpose : Allow EM to use Lbs Hidl -binder_call(radio, lbs_hidl_service) -allow radio mtk_hal_lbs_hwservice:hwservice_manager find; - -# Date : 2018/08/12 -# Purpose : Allow EM to set poweroffmd property -set_prop(radio, mtk_power_off_md_type) - -get_prop(radio, persist_mtk_aee_prop); - - -# Date : 2018/08/31 -# Purpose : Allow EM to set sys property -set_prop(radio, mtk_em_sys_prop) - -# Date : 2018/11/01 -# Purpose : mtk EM c2k bypass read usb file -allow radio sys_usb_rawbulk:file { r_file_perms }; -allow radio sys_usb_rawbulk:dir { r_dir_perms }; - #Date : 2018/11/02 # Operation : Allow radio persist_xcap_rawurl_prop:property_service set; # Purpose : for set telephony xcap use raw url property in IMS SS set_prop(radio, persist_xcap_rawurl_prop) - -# Date : 2019/05/08 -# Operation : label aee_aed sockets -# Purpose : Engineering mode need access for aee commmand -allow radio crash_dump:unix_stream_socket connectto; - -# Date : 2019/05/23 -# Operation : Get subpimc reigster status -# Purpose : Engineering mode need get subpimic register status -allow radio debugfs_regmap:dir { search }; - -# Date : 2018/09/29 -# Purpose : Allow get USB Current Speed in Engineer Mode -get_prop(radio, vendor_usb_prop); diff --git a/plat_public/attributes b/plat_public/attributes index 53ca171..bc8b764 100644 --- a/plat_public/attributes +++ b/plat_public/attributes @@ -18,3 +18,9 @@ attribute mtk_hal_lbs_server; # modem db filter hidl attribute mtk_hal_md_dbfilter; attribute mtk_hal_md_dbfilter_client; + +# Date: 2019/11/18 +# em hidl +attribute mtk_hal_em; +attribute mtk_hal_em_client; +attribute mtk_hal_em_server; |