Merge "[ALPS04423688] wlan: Remove unused codes" into alps-trunk-q0.basic

Change-Id: Ia3e34fd228cd128ad4a3ef87193247b6be0b801f
MTK-Commit-Id: 8a96380238e2fedda0e0aae51aaadd26835f8ce7
This commit is contained in:
CS Kuo 2020-01-18 10:12:47 +08:00 committed by Gerrit Code Review
commit eb08f2a396
5 changed files with 0 additions and 60 deletions

View File

@ -11,12 +11,6 @@ attribute mtk_hal_lbs;
attribute mtk_hal_lbs_client; attribute mtk_hal_lbs_client;
attribute mtk_hal_lbs_server; attribute mtk_hal_lbs_server;
# Date: 2017/06/22
# WIFI HOSTAPD HIDL
attribute mtk_hal_wifi_hostapd;
attribute mtk_hal_wifi_hostapd_client;
attribute mtk_hal_wifi_hostapd_server;
# Date: 2017/06/27 # Date: 2017/06/27
# IMSA HIDL # IMSA HIDL
attribute hal_imsa; attribute hal_imsa;

View File

@ -11,10 +11,6 @@ type mtk_hal_power_hwservice, hwservice_manager_type;
# LBS HIDL # LBS HIDL
type mtk_hal_lbs_hwservice, hwservice_manager_type; type mtk_hal_lbs_hwservice, hwservice_manager_type;
# Date: 2017/06/22
# WIFI HOSTAPD HIDL
type mtk_hal_wifi_hostapd_hwservice, hwservice_manager_type;
# Date: 2017/06/27 # Date: 2017/06/27
# IMSA HIDL # IMSA HIDL
type mtk_hal_imsa_hwservice, hwservice_manager_type; type mtk_hal_imsa_hwservice, hwservice_manager_type;

View File

@ -21,10 +21,6 @@ vendor.mediatek.hardware.power::IPower u:object_r:mtk_hal_power_hwservice:s0
# LBS HIDL # LBS HIDL
vendor.mediatek.hardware.lbs::ILbs u:object_r:mtk_hal_lbs_hwservice:s0 vendor.mediatek.hardware.lbs::ILbs u:object_r:mtk_hal_lbs_hwservice:s0
# Date: 2017/06/22
# WIFI HOSTAPD HIDL
vendor.mediatek.hardware.wifi.hostapd::IHostapd u:object_r:hal_wifi_hostapd_hwservice:s0
# Date : 2017/06/27 # Date : 2017/06/27
# IMSA HIDL # IMSA HIDL
vendor.mediatek.hardware.imsa::IImsa u:object_r:mtk_hal_imsa_hwservice:s0 vendor.mediatek.hardware.imsa::IImsa u:object_r:mtk_hal_imsa_hwservice:s0

View File

@ -1,41 +0,0 @@
# HwBinder IPC from client to server
binder_call(mtk_hal_wifi_hostapd_client, mtk_hal_wifi_hostapd_server)
binder_call(mtk_hal_wifi_hostapd_server, mtk_hal_wifi_hostapd_client)
add_hwservice(mtk_hal_wifi_hostapd_server, mtk_hal_wifi_hostapd_hwservice)
allow mtk_hal_wifi_hostapd_client mtk_hal_wifi_hostapd_hwservice:hwservice_manager find;
# in addition to ioctls whitelisted for all domains, grant mtk_hal_wifi_hostapd priv_sock_ioctls.
allowxperm mtk_hal_wifi_hostapd self:udp_socket ioctl priv_sock_ioctls;
r_dir_file(mtk_hal_wifi_hostapd, sysfs_type)
r_dir_file(mtk_hal_wifi_hostapd, proc_net)
allow mtk_hal_wifi_hostapd kernel:system module_request;
allow mtk_hal_wifi_hostapd self:capability { setuid net_admin setgid net_raw };
allow mtk_hal_wifi_hostapd cgroup:dir create_dir_perms;
allow mtk_hal_wifi_hostapd self:netlink_route_socket nlmsg_write;
allow mtk_hal_wifi_hostapd self:netlink_socket create_socket_perms_no_ioctl;
allow mtk_hal_wifi_hostapd self:netlink_generic_socket create_socket_perms_no_ioctl;
allow mtk_hal_wifi_hostapd self:packet_socket create_socket_perms;
allowxperm mtk_hal_wifi_hostapd self:packet_socket ioctl { unpriv_sock_ioctls priv_sock_ioctls unpriv_tty_ioctls };
allow mtk_hal_wifi_hostapd wifi_data_file:dir create_dir_perms;
allow mtk_hal_wifi_hostapd wifi_data_file:file create_file_perms;
# Create a socket for receiving info from wpa
allow mtk_hal_wifi_hostapd wpa_socket:dir create_dir_perms;
allow mtk_hal_wifi_hostapd wpa_socket:sock_file create_file_perms;
# Allow hostapd_cli to work. hostapd_cli creates a socket in
# /data/misc/wifi/sockets which mtk_hal_wifi_hostapd hostapd communicates with.
userdebug_or_eng(`
unix_socket_send(mtk_hal_wifi_hostapd, wpa, su)
')
###
### neverallow rules
###
# hostapd should not trust any data from sdcards
neverallow mtk_hal_wifi_hostapd_server sdcard_type:dir ~getattr;
neverallow mtk_hal_wifi_hostapd_server sdcard_type:file *;

View File

@ -130,11 +130,6 @@ get_prop(system_server, mtk_telephony_sensitive_prop)
# Purpose : Add for A/B system # Purpose : Add for A/B system
allow system_server debugfs_wakeup_sources:file { read getattr open }; allow system_server debugfs_wakeup_sources:file { read getattr open };
# Date:W17.26
# Operation : mtk hostapd hal
# Purpose : mtk hostapd hal interface permission
hal_client_domain(system_server, mtk_hal_wifi_hostapd)
# Date:W17.26 # Date:W17.26
# Operation : imsa hal # Operation : imsa hal
# Purpose : imsa hal interface permission # Purpose : imsa hal interface permission