Same act that imprisoned Japanese citizens that was slightly changed. Legally the government could make you a slave and it wouldn't violate your charter.
You don't have as many rights or protections as you believe. You don't even have property rights in Canada.