sensors: Move USF related sepolicy to gs-common.

Bug: 305120274
Test: Compile pass. Flash the build to WHI, WHI_PRO, ZUMA devices and no
      sensor related avc denied log.
Change-Id: I5bab78c72849fbdf312a5d088532572dbd6e6c6d
Signed-off-by: Rick Chen <rickctchen@google.com>
This commit is contained in:
Rick Chen 2023-11-03 19:52:54 +08:00
parent 5a0785e0ec
commit cb448adfc8
4 changed files with 108 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#
# USF SELinux type enforcement macros.
#
#
# usf_low_latency_transport(domain)
#
# Allows domain use of the USF low latency transport.
#
define(`usf_low_latency_transport', `
allow $1 hal_graphics_mapper_hwservice:hwservice_manager find;
hal_client_domain($1, hal_graphics_allocator)
')