Canadian jailed 9 years under terrorism law