The Constitution,in setting limits on Congress, says in Article One: "The privilege of the Writ of Habeas Corpus shall not be suspended,unless when in Cases of Rebellion or Invasion the public Safety may require it."
VOA: special.2009.02.09
The prisoners there have access to lawyers, and the federal courts oversee habeascorpuscases.