Skip to content
Snippets Groups Projects
Commit 59497af5 authored by Alex Klyubin's avatar Alex Klyubin Committed by android-build-merger
Browse files

Merge "Treble devices use binderized HALs" into oc-dev am: 8015cfd5

am: 129eec07

Change-Id: I8e796a48250552076a7393937c473bdab4646c44
parents e3777ad3 129eec07
No related branches found
No related tags found
No related merge requests found
...@@ -200,11 +200,6 @@ hal_client_domain(system_server, hal_weaver) ...@@ -200,11 +200,6 @@ hal_client_domain(system_server, hal_weaver)
hal_client_domain(system_server, hal_wifi) hal_client_domain(system_server, hal_wifi)
hal_client_domain(system_server, hal_wifi_offload) hal_client_domain(system_server, hal_wifi_offload)
# TODO(b/34274385): Remove this once Wi-Fi Supplicant HAL is guaranteed to be binderized on full
# Treble devices. Passthrough Wi-Fi Supplicant HAL makes system_server touch wpa_socket which is a
# vendor type. system_server, being a non-vendor component, is not permitted to touch that socket.
typeattribute system_server socket_between_core_and_vendor_violators;
hal_client_domain(system_server, hal_wifi_supplicant) hal_client_domain(system_server, hal_wifi_supplicant)
# Talk to tombstoned to get ANR traces. # Talk to tombstoned to get ANR traces.
......
...@@ -175,15 +175,17 @@ define(`hal_client_domain', ` ...@@ -175,15 +175,17 @@ define(`hal_client_domain', `
typeattribute $1 halclientdomain; typeattribute $1 halclientdomain;
typeattribute $1 $2_client; typeattribute $1 $2_client;
# TODO(b/34170079): Make the inclusion of the rules below conditional, # TODO(b/34170079): Make the inclusion of the rules below conditional also on
# once we know at build time whether a HAL is going to run in # non-Treble devices. For now, on non-Treble device, always grant clients of a
# passthrough or binderized mode. # HAL sufficient access to run the HAL in passthrough mode (i.e., in-process).
not_full_treble(`
typeattribute $1 $2; typeattribute $1 $2;
# Find passthrough HAL implementations # Find passthrough HAL implementations
allow $2 system_file:dir r_dir_perms; allow $2 system_file:dir r_dir_perms;
allow $2 vendor_file:dir r_dir_perms; allow $2 vendor_file:dir r_dir_perms;
allow $2 vendor_file:file { read open getattr execute }; allow $2 vendor_file:file { read open getattr execute };
') ')
')
##################################### #####################################
# passthrough_hal_client_domain(domain, hal_type) # passthrough_hal_client_domain(domain, hal_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment