Article 24: Duties of the coastal State

1. The coastal State shall not hamper the innocent passage of foreign
ships through the territorial sea except in accordance with this Convention.
In particular, in the application of this Convention or of any laws or
regulations adopted in conformity with this Convention, the coastal State shall not:
(a) impose requirements on foreign ships which have the practical
effect of denying or impairing the right of innocent passage; or
(b) discriminate in form or in fact against the ships of any State or
against ships carrying cargoes to, from or on behalf of any
State.
2. The coastal State shall give appropriate publicity to any danger to
navigation, of which it has knowledge, within its territorial sea.
Source: UNCLOS