The Navy Act,1957
Section 157. Naval prisons and naval detention quarters
The Central Government may set apart any buildings or vessels or any parts thereof as naval prisons or naval detention quarters and any buildings, vessels or parts of buildings or vessels so set apart as naval prisons or naval detention quarters, as the case may be, shall be deemed to be naval prisons or naval detention quarters respectively within the meaning of this Act.