Answer:
Both the prisons and the military have free speech and expression under the First Amendment right has held by the U.S. Supreme Court, but these are limited under some circumstances.
Step-by-step explanation:
Basically, all civilian population in the US have the right to free expression under the First Amendment.
For the Military, the U.S. Supreme Court has held that there is a limited level of free speech for members of the military. Although the service members have the same level of free speech and expression like the civilian under First Amendment rights, but this is limited because no military man is given the right to make any statement or publish any information that will put his unit or its cause in danger or at risk.
For the prison, the U.S. Supreme Court has held that under the First Amendment right, prisoners have the right to receive and send mail. However, this is limited only when there is a need to protect the security of the institution. This is because the First Amendment right does not give the prisoners the right to circulate information calling for a mass protest against mistreatment. The prison official are therefore empowered to discipline inmates who circulate such information.