Add missing SELinux rule for accessing GPU

Bug: 301023410
Test: atest virtual_camera_tests CtsVirtualDevicesCameraTestCases CtsVirtualDevicesCameraCtsTestCases
Merged-In: Iaaab570fc2cb3b2bfe17f964a52b09a0549e0a8b
Change-Id: Iaaab570fc2cb3b2bfe17f964a52b09a0549e0a8b
This commit is contained in:
Jan Sebechlebsky 2024-06-13 14:23:22 +00:00 committed by Android Build Cherrypicker Worker
parent 1327971c7c
commit 9999b0a332

View file

@ -40,6 +40,7 @@ hal_client_domain(virtual_camera, hal_graphics_allocator)
# Allow virtual_camera to use GPU
allow virtual_camera gpu_device:chr_file rw_file_perms;
allow virtual_camera gpu_device:dir r_dir_perms;
allow virtual_camera sysfs_gpu:file r_file_perms;
# Allow virtual camera to use graphics composer fd-s (fences).
allow virtual_camera hal_graphics_composer:fd use;