Under international treaty, any ship (civilian or military) is permitted to transit the Suez Canal for any reason without being impeded. If Egypt doesn’t protect the open access arrangement for this waterway they may find that outside international forces would be more than willing to relieve them of their responsibilities.
Wasn’t my point. An attack by the iranian ship on an Israeli ship was foiled, it seems at least in part, by the Egyptian intelligence services. What does right of way have to do with it?