According to articles 21 and 22 of the Standard Minimum Rules for the Treatment of Prisoners passed by the United Nations. A prisoner has the right to:
Prisoners are also assigned outdoor work in some circumstances.
All of these activities help a prisoner have a sense of "freedom" during his time in prison.