One of the punishments possible under the discipline code is confining to barracks, or confining to ship in the case of naval personnel in the Canadian Forces Maritime Command, as I think they call it. Everyone else calls it the navy. Do you consider those punishments a deprivation of liberty? It's not necessarily in the same category as being locked in a cell.
On February 16th, 2011. See this statement in context.