Skip to content
Snippets Groups Projects
Commit 9234e00d authored by Steven Moreland's avatar Steven Moreland
Browse files

hal_attribute_hwservice_client drop '_client'

Since this attribute just associates a hal_attribute
with a given hwservice in the standard way.

Bug: 80319537
Test: boot + sanity + test for denials
Change-Id: I545de165515387317e6920ce8f5e8c491f9ab24e
parent 343e24a1
Branches
No related tags found
No related merge requests found
Showing with 21 additions and 21 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_light_client, hal_light_server) binder_call(hal_light_client, hal_light_server)
binder_call(hal_light_server, hal_light_client) binder_call(hal_light_server, hal_light_client)
hal_attribute_hwservice_client(hal_light, hal_light_hwservice) hal_attribute_hwservice(hal_light, hal_light_hwservice)
allow hal_light sysfs_leds:lnk_file read; allow hal_light sysfs_leds:lnk_file read;
allow hal_light sysfs_leds:file rw_file_perms; allow hal_light sysfs_leds:file rw_file_perms;
......
...@@ -4,7 +4,7 @@ binder_call(hal_lowpan_server, hal_lowpan_client) ...@@ -4,7 +4,7 @@ binder_call(hal_lowpan_server, hal_lowpan_client)
# Allow hal_lowpan_client to be able to find the hal_lowpan_server # Allow hal_lowpan_client to be able to find the hal_lowpan_server
hal_attribute_hwservice_client(hal_lowpan, hal_lowpan_hwservice) hal_attribute_hwservice(hal_lowpan, hal_lowpan_hwservice)
# hal_lowpan domain can write/read to/from lowpan_prop # hal_lowpan domain can write/read to/from lowpan_prop
set_prop(hal_lowpan_server, lowpan_prop) set_prop(hal_lowpan_server, lowpan_prop)
......
# HwBinder IPC from client to server # HwBinder IPC from client to server
binder_call(hal_memtrack_client, hal_memtrack_server) binder_call(hal_memtrack_client, hal_memtrack_server)
hal_attribute_hwservice_client(hal_memtrack, hal_memtrack_hwservice) hal_attribute_hwservice(hal_memtrack, hal_memtrack_hwservice)
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
binder_call(hal_neuralnetworks_client, hal_neuralnetworks_server) binder_call(hal_neuralnetworks_client, hal_neuralnetworks_server)
binder_call(hal_neuralnetworks_server, hal_neuralnetworks_client) binder_call(hal_neuralnetworks_server, hal_neuralnetworks_client)
hal_attribute_hwservice_client(hal_neuralnetworks, hal_neuralnetworks_hwservice) hal_attribute_hwservice(hal_neuralnetworks, hal_neuralnetworks_hwservice)
allow hal_neuralnetworks hidl_memory_hwservice:hwservice_manager find; allow hal_neuralnetworks hidl_memory_hwservice:hwservice_manager find;
allow hal_neuralnetworks hal_allocator:fd use; allow hal_neuralnetworks hal_allocator:fd use;
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_nfc_client, hal_nfc_server) binder_call(hal_nfc_client, hal_nfc_server)
binder_call(hal_nfc_server, hal_nfc_client) binder_call(hal_nfc_server, hal_nfc_client)
hal_attribute_hwservice_client(hal_nfc, hal_nfc_hwservice) hal_attribute_hwservice(hal_nfc, hal_nfc_hwservice)
# Set NFC properties (used by bcm2079x HAL). # Set NFC properties (used by bcm2079x HAL).
set_prop(hal_nfc, nfc_prop) set_prop(hal_nfc, nfc_prop)
......
# HwBinder IPC from client to server # HwBinder IPC from client to server
binder_call(hal_oemlock_client, hal_oemlock_server) binder_call(hal_oemlock_client, hal_oemlock_server)
hal_attribute_hwservice_client(hal_oemlock, hal_oemlock_hwservice) hal_attribute_hwservice(hal_oemlock, hal_oemlock_hwservice)
...@@ -25,8 +25,8 @@ crash_dump_fallback(hal_omx_server) ...@@ -25,8 +25,8 @@ crash_dump_fallback(hal_omx_server)
# via PDX. Thus, there is no need to use pdx_client macro. # via PDX. Thus, there is no need to use pdx_client macro.
allow hal_omx_server bufferhubd:fd use; allow hal_omx_server bufferhubd:fd use;
hal_attribute_hwservice_client(hal_omx, hal_omx_hwservice) hal_attribute_hwservice(hal_omx, hal_omx_hwservice)
hal_attribute_hwservice_client(hal_omx, hal_codec2_hwservice) hal_attribute_hwservice(hal_omx, hal_codec2_hwservice)
allow hal_omx_client hidl_token_hwservice:hwservice_manager find; allow hal_omx_client hidl_token_hwservice:hwservice_manager find;
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_power_client, hal_power_server) binder_call(hal_power_client, hal_power_server)
binder_call(hal_power_server, hal_power_client) binder_call(hal_power_server, hal_power_client)
hal_attribute_hwservice_client(hal_power, hal_power_hwservice) hal_attribute_hwservice(hal_power, hal_power_hwservice)
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_secure_element_client, hal_secure_element_server) binder_call(hal_secure_element_client, hal_secure_element_server)
binder_call(hal_secure_element_server, hal_secure_element_client) binder_call(hal_secure_element_server, hal_secure_element_client)
hal_attribute_hwservice_client(hal_secure_element, hal_secure_element_hwservice) hal_attribute_hwservice(hal_secure_element, hal_secure_element_hwservice)
# HwBinder IPC from client to server # HwBinder IPC from client to server
binder_call(hal_sensors_client, hal_sensors_server) binder_call(hal_sensors_client, hal_sensors_server)
hal_attribute_hwservice_client(hal_sensors, hal_sensors_hwservice) hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice)
# Allow sensor hals to access ashmem memory allocated by apps # Allow sensor hals to access ashmem memory allocated by apps
allow hal_sensors { appdomain -isolated_app }:fd use; allow hal_sensors { appdomain -isolated_app }:fd use;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_telephony_client, hal_telephony_server) binder_call(hal_telephony_client, hal_telephony_server)
binder_call(hal_telephony_server, hal_telephony_client) binder_call(hal_telephony_server, hal_telephony_client)
hal_attribute_hwservice_client(hal_telephony, hal_telephony_hwservice) hal_attribute_hwservice(hal_telephony, hal_telephony_hwservice)
allowxperm hal_telephony_server self:udp_socket ioctl priv_sock_ioctls; allowxperm hal_telephony_server self:udp_socket ioctl priv_sock_ioctls;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_tetheroffload_client, hal_tetheroffload_server) binder_call(hal_tetheroffload_client, hal_tetheroffload_server)
binder_call(hal_tetheroffload_server, hal_tetheroffload_client) binder_call(hal_tetheroffload_server, hal_tetheroffload_client)
hal_attribute_hwservice_client(hal_tetheroffload, hal_tetheroffload_hwservice) hal_attribute_hwservice(hal_tetheroffload, hal_tetheroffload_hwservice)
# allow the client to pass the server already open netlink sockets # allow the client to pass the server already open netlink sockets
allow hal_tetheroffload_server hal_tetheroffload_client:netlink_netfilter_socket { getattr read setopt write }; allow hal_tetheroffload_server hal_tetheroffload_client:netlink_netfilter_socket { getattr read setopt write };
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_thermal_client, hal_thermal_server) binder_call(hal_thermal_client, hal_thermal_server)
binder_call(hal_thermal_server, hal_thermal_client) binder_call(hal_thermal_server, hal_thermal_client)
hal_attribute_hwservice_client(hal_thermal, hal_thermal_hwservice) hal_attribute_hwservice(hal_thermal, hal_thermal_hwservice)
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_tv_cec_client, hal_tv_cec_server) binder_call(hal_tv_cec_client, hal_tv_cec_server)
binder_call(hal_tv_cec_server, hal_tv_cec_client) binder_call(hal_tv_cec_server, hal_tv_cec_client)
hal_attribute_hwservice_client(hal_tv_cec, hal_tv_cec_hwservice) hal_attribute_hwservice(hal_tv_cec, hal_tv_cec_hwservice)
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_tv_input_client, hal_tv_input_server) binder_call(hal_tv_input_client, hal_tv_input_server)
binder_call(hal_tv_input_server, hal_tv_input_client) binder_call(hal_tv_input_server, hal_tv_input_client)
hal_attribute_hwservice_client(hal_tv_input, hal_tv_input_hwservice) hal_attribute_hwservice(hal_tv_input, hal_tv_input_hwservice)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_usb_client, hal_usb_server) binder_call(hal_usb_client, hal_usb_server)
binder_call(hal_usb_server, hal_usb_client) binder_call(hal_usb_server, hal_usb_client)
hal_attribute_hwservice_client(hal_usb, hal_usb_hwservice) hal_attribute_hwservice(hal_usb, hal_usb_hwservice)
allow hal_usb self:netlink_kobject_uevent_socket create; allow hal_usb self:netlink_kobject_uevent_socket create;
allow hal_usb self:netlink_kobject_uevent_socket setopt; allow hal_usb self:netlink_kobject_uevent_socket setopt;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
binder_call(hal_usb_gadget_client, hal_usb_gadget_server) binder_call(hal_usb_gadget_client, hal_usb_gadget_server)
binder_call(hal_usb_gadget_server, hal_usb_gadget_client) binder_call(hal_usb_gadget_server, hal_usb_gadget_client)
hal_attribute_hwservice_client(hal_usb_gadget, hal_usb_gadget_hwservice) hal_attribute_hwservice(hal_usb_gadget, hal_usb_gadget_hwservice)
# Configuring usb gadget functions # Configuring usb gadget functions
allow hal_usb_gadget_server configfs:lnk_file { read create unlink}; allow hal_usb_gadget_server configfs:lnk_file { read create unlink};
......
...@@ -3,4 +3,4 @@ binder_call(hal_vehicle_client, hal_vehicle_server) ...@@ -3,4 +3,4 @@ binder_call(hal_vehicle_client, hal_vehicle_server)
binder_call(hal_vehicle_server, hal_vehicle_client) binder_call(hal_vehicle_server, hal_vehicle_client)
hal_attribute_hwservice_client(hal_vehicle, hal_vehicle_hwservice) hal_attribute_hwservice(hal_vehicle, hal_vehicle_hwservice)
# HwBinder IPC from client to server # HwBinder IPC from client to server
binder_call(hal_vibrator_client, hal_vibrator_server) binder_call(hal_vibrator_client, hal_vibrator_server)
hal_attribute_hwservice_client(hal_vibrator, hal_vibrator_hwservice) hal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice)
# vibrator sysfs rw access # vibrator sysfs rw access
allow hal_vibrator sysfs_vibrator:file rw_file_perms; allow hal_vibrator sysfs_vibrator:file rw_file_perms;
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
binder_call(hal_vr_client, hal_vr_server) binder_call(hal_vr_client, hal_vr_server)
binder_call(hal_vr_server, hal_vr_client) binder_call(hal_vr_server, hal_vr_client)
hal_attribute_hwservice_client(hal_vr, hal_vr_hwservice) hal_attribute_hwservice(hal_vr, hal_vr_hwservice)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment