This is excruciatingly funny, but I'm confused by this part:
Judge: [Temporary Resident Permits] are given at the discretion of the Minister, who had already indicated that Mr Galloway wouldn't receive one.
CIC Lawyer: Yes, but he could have shown up at the border--
Judge: --and run the risk of indefinite detention. That's not much of an option, is it?
CIC Lawyer: I admit that these are not very palatable options, but--
"Run the risk of indefinite detention?" How exactly would that work? If you're declared inadmissible, then they don't let you in. So how could they refuse you entrance to Canada, and simultaneously take you into custody?
Does anyone else see a jurisdictional problem here?