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

Group all HAL impls using haldomain attribute

am: f41d89eb

Change-Id: I8f32e2e80fc7bfc08ce9fe3655968a8d7dfc94e8
parents af57c85e f41d89eb
No related branches found
No related tags found
No related merge requests found
###
### Rules for all HAL implementations
###
...@@ -114,6 +114,9 @@ attribute boot_control_hal; ...@@ -114,6 +114,9 @@ attribute boot_control_hal;
# recovery for A/B devices. # recovery for A/B devices.
attribute update_engine_common; attribute update_engine_common;
# All domains used for HAL implementations
attribute haldomain;
# HALs # HALs
attribute hal_audio; attribute hal_audio;
attribute hal_bluetooth; attribute hal_bluetooth;
......
# allocator subsystem # allocator subsystem
type hal_allocator, domain; type hal_allocator, domain, haldomain;
type hal_allocator_exec, exec_type, file_type; type hal_allocator_exec, exec_type, file_type;
# hwbinder access # hwbinder access
......
# boot_control subsystem # boot_control subsystem
type hal_boot, domain, boot_control_hal; type hal_boot, domain, boot_control_hal, haldomain;
type hal_boot_exec, exec_type, file_type; type hal_boot_exec, exec_type, file_type;
# hwbinder access # hwbinder access
......
...@@ -115,6 +115,20 @@ define(`bluetooth_domain', ` ...@@ -115,6 +115,20 @@ define(`bluetooth_domain', `
typeattribute $1 bluetoothdomain; typeattribute $1 bluetoothdomain;
') ')
#####################################
# hal_impl_domain(domain, hal_type_attr)
# Allow a base set of permissions required for a domain to host a
# HAL implementation of the specified HAL type.
#
# For example, default implementation of Foo HAL:
# type hal_foo_default, domain;
# hal_impl_domain(hal_foo_default, hal_foo)
#
define(`hal_impl_domain', `
typeattribute $1 haldomain;
typeattribute $1 $2;
')
##################################### #####################################
# unix_socket_connect(clientdomain, socket, serverdomain) # unix_socket_connect(clientdomain, socket, serverdomain)
# Allow a local socket connection from clientdomain via # Allow a local socket connection from clientdomain via
......
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