perfetto
perfetto copied to clipboard
traced_relay set-socket-permissions failure
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?