Give surfaceflinger permission to write perfetto traces
Test: Manual tests Bug: 137050898 Change-Id: I00f67a666cbf265950aa9160d82e16bef2b2e423
This commit is contained in:
parent
56d34f7838
commit
c97ea91e2f
1 changed files with 5 additions and 0 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in a new issue