Prison on a US navy ship (4)
I believe the answer is:
brig
(Other definitions for brig that I've seen before include "Two-masted square-rigged sailing ship" , "Ship; a ship's jail" , "Two-masted ship; gaol" , "Ship; ship's prison" , "Two-masted square-rigged vessel" .)