forked from firka/flutter
fdio_service_connect no longer provides rights. Since we need the READABLE right when opening the debug/ctrl/diagnostics directories, this change uses fdio_open_at. This change also fixes the Clone to remove specific rights and instead use CLONE_SAME_RIGHTS. Verified locally that we no longer get ACCESS_DENIED on the diagnostics directory when opening in component manager.