sepolicy: Rename hal_uwb -> hal_uwb_vendor
Since we are now creating an AOSP HAL for uwb. Rename Pixel specific internal UWB HAL from Android S to hal_uwb_vendor to avoid conflicts with the AOSP HAL sepolicy rules that are going to be added in Android T. Android S Architecture: |Apps | AOSP API | Vendor Service | Vendor HAL Interface | Vendor HAL Implementation | Vendor driver/firmware Android T Architecture: |Apps | AOSP API | AOSP Service | AOSP HAL Interface | Vendor HAL Implementation | Vendor driver/firmware Ignore-AOSP-First: Dependent changes in internal-only projects. Bug: 195308730 Test: Compiles Change-Id: I7bf4794232604372134ea299c8e2a6ba14a801d3 Merged-In: I7bf4794232604372134ea299c8e2a6ba14a801d3 (cherry picked from commit40465250e4
) (cherry picked from commit27ab309fad
)
This commit is contained in:
parent
28515dd083
commit
37ee61f663
3 changed files with 8 additions and 4 deletions
|
@ -12,6 +12,7 @@
|
|||
hal_contexthub_service
|
||||
hal_system_suspend_service
|
||||
hal_tv_tuner_service
|
||||
hal_uwb_vendor_service
|
||||
hal_wifi_hostapd_service
|
||||
power_stats_service
|
||||
snapuserd_prop
|
||||
|
|
|
@ -371,6 +371,9 @@ hal_attribute(tv_tuner);
|
|||
hal_attribute(usb);
|
||||
hal_attribute(usb_gadget);
|
||||
hal_attribute(uwb);
|
||||
# TODO(b/196225233): Remove this attribute and its usages elsewhere
|
||||
# once all chip vendors integrate to the new UWB stack.
|
||||
hal_attribute(uwb_vendor);
|
||||
hal_attribute(vehicle);
|
||||
hal_attribute(vibrator);
|
||||
hal_attribute(vr);
|
||||
|
|
|
@ -8,7 +8,7 @@ neverallow {
|
|||
-hal_wifi_hostapd_server
|
||||
-hal_wifi_supplicant_server
|
||||
-hal_telephony_server
|
||||
-hal_uwb_server
|
||||
-hal_uwb_vendor_server
|
||||
} self:global_capability_class_set { net_admin net_raw };
|
||||
|
||||
# Unless a HAL's job is to communicate over the network, or control network
|
||||
|
@ -26,7 +26,7 @@ neverallow {
|
|||
-hal_wifi_hostapd_server
|
||||
-hal_wifi_supplicant_server
|
||||
-hal_telephony_server
|
||||
-hal_uwb_server
|
||||
-hal_uwb_vendor_server
|
||||
} domain:{ udp_socket rawip_socket } *;
|
||||
|
||||
neverallow {
|
||||
|
@ -45,11 +45,11 @@ neverallow {
|
|||
|
||||
# The UWB HAL is not actually a networking HAL but may need to bring up and down
|
||||
# interfaces. Restrict it to only these networking operations.
|
||||
neverallow hal_uwb_server self:global_capability_class_set { net_raw };
|
||||
neverallow hal_uwb_vendor_server self:global_capability_class_set { net_raw };
|
||||
|
||||
# Subset of socket_class_set likely to be usable for communication or accessible through net_admin.
|
||||
# udp_socket is required to use interface ioctls.
|
||||
neverallow hal_uwb_server domain:{ socket rawip_socket netlink_socket packet_socket key_socket netlink_route_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_dnrt_socket netlink_kobject_uevent_socket tun_socket netlink_iscsi_socket netlink_fib_lookup_socket netlink_connector_socket netlink_netfilter_socket netlink_scsitransport_socket netlink_rdma_socket netlink_crypto_socket qipcrtr_socket xdp_socket } *;
|
||||
neverallow hal_uwb_vendor_server domain:{ socket rawip_socket netlink_socket packet_socket key_socket netlink_route_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_dnrt_socket netlink_kobject_uevent_socket tun_socket netlink_iscsi_socket netlink_fib_lookup_socket netlink_connector_socket netlink_netfilter_socket netlink_scsitransport_socket netlink_rdma_socket netlink_crypto_socket qipcrtr_socket xdp_socket } *;
|
||||
|
||||
###
|
||||
# HALs are defined as an attribute and so a given domain could hypothetically
|
||||
|
|
Loading…
Reference in a new issue