Prisoners deemed in legal custody
33.—(1)  Every prisoner confined in any prison is deemed to be in the legal custody of the Superintendent of that prison.
(2)  Every prisoner is subject to the prison discipline and regulations during the whole time of his or her imprisonment, whether or not he or she is within the precincts of any prison.