Camera: Allow stream socket read/write with surfaceflinger

This is needed for the camera service to be able to use
AChoreographer ndk.

Test: adb shell dmesg | audit2allow -p policy
Bug: 200306379
Change-Id: I191760f1cdd0a88c9d140fffd4470e9ae1956c52
This commit is contained in:
Shuzhen Wang 2021-10-06 14:10:45 -07:00
parent f15d7e3ff5
commit 5ed0c50e86

View file

@ -36,6 +36,9 @@ allow cameraserver surfaceflinger_service:service_manager find;
allow cameraserver hidl_token_hwservice:hwservice_manager find;
# Allow to talk with surfaceflinger through unix stream socket
allow cameraserver surfaceflinger:unix_stream_socket { read write };
###
### neverallow rules
###