In the US, the NSA training stated up to 5 years for each occurrence.
The enlisted man who served time for taking a selfie with his girlfriend (authorized on-board visit) that had classified equipment in the background would like to have been in Canada.