perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

traced_relay set-socket-permissions failure

Open aetheln opened this issue 6 months ago • 0 comments

relay_service.cc 589: } else { auto listen_socket = GetProducerSocket(); remove(listen_socket); if (!listen_socket_group.empty()) { auto status = base::SetFilePermissions(listen_socket, listen_socket_group, listen_socket_mode_bits); if (!status.ok()) { PERFETTO_ELOG("Failed to set socket permissions: %s", status.c_message()); return 1; } }

svc->Start(listen_socket, GetRelaySocket());

}

the group permission set will fail here just after the socket file is removed. Should SetFilePermissions be called after svc->Start here?

aetheln avatar Jun 05 '26 03:06 aetheln