Give surfaceflinger permission to write perfetto traces

Test: Manual tests
Bug: 137050898
Change-Id: I00f67a666cbf265950aa9160d82e16bef2b2e423
This commit is contained in:
Mikael Pessa 2019-07-01 09:22:59 -07:00 committed by Raymond Chiu
parent 56d34f7838
commit c97ea91e2f

View file

@ -66,6 +66,11 @@ userdebug_or_eng(`
allow surfaceflinger wm_trace_data_file:file { getattr setattr create w_file_perms };
')
# Needed to register as a Perfetto producer.
allow surfaceflinger traced:fd use;
allow surfaceflinger traced_tmpfs:file { read write getattr map };
unix_socket_connect(surfaceflinger, traced_producer, traced)
# Use socket supplied by adbd, for cmd gpu vkjson etc.
allow surfaceflinger adbd:unix_stream_socket { read write getattr };