Although the state is permitted to deny a person certain rights to liberty and property under criminal justice laws, prisoners retain their rights to other basic protections and freedoms - among these are freedom from cruel and unusual punishment, freedom of religion, the right to legal representation, and the right to due process.