Merge "Allow virtual_camera to use fd from surfaceflinger" into main

This commit is contained in:
Vadim Caen 2024-03-21 15:46:29 +00:00 committed by Gerrit Code Review
commit 88e37d37f1

View file

@ -28,6 +28,9 @@ binder_call(virtual_camera, appdomain)
# Allow virtual_camera to use fd from apps
allow virtual_camera { appdomain -isolated_app }:fd use;
# Allow virtual_camera to use fd from surface flinger
allow virtual_camera surfaceflinger:fd use;
# Only allow virtual_camera to add a virtual_camera_service and no one else.
add_service(virtual_camera, virtual_camera_service);