Skip to content
Snippets Groups Projects
Commit bcd838eb authored by Roshan Pius's avatar Roshan Pius Committed by Android (Google) Code Review
Browse files

Merge "sepolicy: Add permissions for wpa_supplicant binder"

parents c45cebda 18883a93
No related branches found
No related tags found
No related merge requests found
...@@ -120,3 +120,4 @@ type wifiscanner_service, system_api_service, system_server_service, service_man ...@@ -120,3 +120,4 @@ type wifiscanner_service, system_api_service, system_server_service, service_man
type wifi_service, app_api_service, system_server_service, service_manager_type; type wifi_service, app_api_service, system_server_service, service_manager_type;
type wificond_service, system_server_service, service_manager_type; type wificond_service, system_server_service, service_manager_type;
type window_service, system_api_service, system_server_service, service_manager_type; type window_service, system_api_service, system_server_service, service_manager_type;
type wpa_supplicant_service, system_server_service, service_manager_type;
...@@ -145,4 +145,5 @@ wifiscanner u:object_r:wifiscanner_service:s0 ...@@ -145,4 +145,5 @@ wifiscanner u:object_r:wifiscanner_service:s0
wifi u:object_r:wifi_service:s0 wifi u:object_r:wifi_service:s0
wificond u:object_r:wificond_service:s0 wificond u:object_r:wificond_service:s0
window u:object_r:window_service:s0 window u:object_r:window_service:s0
wpa u:object_r:wpa_supplicant_service:s0
* u:object_r:default_android_service:s0 * u:object_r:default_android_service:s0
...@@ -6,5 +6,6 @@ init_daemon_domain(wificond) ...@@ -6,5 +6,6 @@ init_daemon_domain(wificond)
binder_use(wificond) binder_use(wificond)
binder_call(wificond, system_server) binder_call(wificond, system_server)
binder_call(wificond, wpa)
allow wificond wificond_service:service_manager { add find }; allow wificond wificond_service:service_manager { add find };
...@@ -23,7 +23,10 @@ allow wpa wifi_data_file:dir create_dir_perms; ...@@ -23,7 +23,10 @@ allow wpa wifi_data_file:dir create_dir_perms;
allow wpa wifi_data_file:file create_file_perms; allow wpa wifi_data_file:file create_file_perms;
unix_socket_send(wpa, system_wpa, system_server) unix_socket_send(wpa, system_wpa, system_server)
# Binder interface exposed by WPA.
binder_use(wpa) binder_use(wpa)
binder_call(wpa, wificond)
allow wpa wpa_supplicant_service:service_manager { add find };
# Create a socket for receiving info from wpa # Create a socket for receiving info from wpa
type_transition wpa wifi_data_file:dir wpa_socket "sockets"; type_transition wpa wifi_data_file:dir wpa_socket "sockets";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment