Skip to content
Snippets Groups Projects
Commit 9a293013 authored by Po-Chien Hsueh's avatar Po-Chien Hsueh
Browse files

sepolicy: Move hostapd to vendor

Move hostapd to vendor/bin/ because it's only used by WIFI HAL.
This commit is for sepolicy corresponding changes.

Bug: 34236942
Bug: 34237659
Test: Hotspot works fine. Integration test.

Change-Id: I2ee165970a20f4015d5d62fc590d448e9acb92c1
parent 58db47cf
No related branches found
No related tags found
No related merge requests found
...@@ -217,7 +217,6 @@ ...@@ -217,7 +217,6 @@
/system/xbin/perfprofd u:object_r:perfprofd_exec:s0 /system/xbin/perfprofd u:object_r:perfprofd_exec:s0
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0 /system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/healthd u:object_r:healthd_exec:s0 /system/bin/healthd u:object_r:healthd_exec:s0
/system/bin/hostapd u:object_r:hostapd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0 /system/bin/clatd u:object_r:clatd_exec:s0
/system/bin/lmkd u:object_r:lmkd_exec:s0 /system/bin/lmkd u:object_r:lmkd_exec:s0
/system/bin/inputflinger u:object_r:inputflinger_exec:s0 /system/bin/inputflinger u:object_r:inputflinger_exec:s0
...@@ -325,7 +324,6 @@ ...@@ -325,7 +324,6 @@
/data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0 /data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0
/data/misc/wifi/sockets(/.*)? u:object_r:wpa_socket:s0 /data/misc/wifi/sockets(/.*)? u:object_r:wpa_socket:s0
/data/misc/wifi/sockets/wpa_ctrl.* u:object_r:system_wpa_socket:s0 /data/misc/wifi/sockets/wpa_ctrl.* u:object_r:system_wpa_socket:s0
/data/misc/wifi/hostapd(/.*)? u:object_r:hostapd_socket:s0
/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0 /data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
/data/misc/vold(/.*)? u:object_r:vold_data_file:s0 /data/misc/vold(/.*)? u:object_r:vold_data_file:s0
/data/misc/perfprofd(/.*)? u:object_r:perfprofd_data_file:s0 /data/misc/perfprofd(/.*)? u:object_r:perfprofd_data_file:s0
......
# type_transition must be private policy the domain_trans rules could stay
# public, but conceptually should go with this
init_daemon_domain(hostapd)
...@@ -246,8 +246,6 @@ type uncrypt_socket, file_type; ...@@ -246,8 +246,6 @@ type uncrypt_socket, file_type;
type vold_socket, file_type; type vold_socket, file_type;
type webview_zygote_socket, file_type; type webview_zygote_socket, file_type;
type wpa_socket, file_type; type wpa_socket, file_type;
# hostapd control interface.
type hostapd_socket, file_type;
type zygote_socket, file_type; type zygote_socket, file_type;
type sap_uim_socket, file_type; type sap_uim_socket, file_type;
# UART (for GPS) control proc file # UART (for GPS) control proc file
......
# Socket types
type hostapd_socket, file_type;
...@@ -28,4 +28,10 @@ ...@@ -28,4 +28,10 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0
/(vendor|system/vendor)/bin/hw/wpa_supplicant u:object_r:hal_wifi_supplicant_default_exec:s0 /(vendor|system/vendor)/bin/hw/wpa_supplicant u:object_r:hal_wifi_supplicant_default_exec:s0
/(vendor|system/vendor)/bin/hostapd u:object_r:hostapd_exec:s0
#############################
# Data files
#
/data/misc/wifi/hostapd(/.*)? u:object_r:hostapd_socket:s0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
type hostapd, domain; type hostapd, domain;
type hostapd_exec, exec_type, file_type; type hostapd_exec, exec_type, file_type;
init_daemon_domain(hostapd)
net_domain(hostapd) net_domain(hostapd)
allow hostapd self:capability { net_admin net_raw }; allow hostapd self:capability { net_admin net_raw };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment