A right to habeas corpus can generally be suspended only in extreme circumstances such as rebellion or invasion. However, the jurisprudence surrounding habeas corpus has evolved to a functional approach that considers the nature of government authority exercised over a location rather than formal sovereignty.
For example: Even though a military base abroad is not part of the home country’s territorial sovereignty, detainees may still enjoy habeas corpus rights if the home country exercises de facto jurisdiction over the area.