Tough laws imposing strict visa conditions on criminals being released from indefinite detention have passed federal parliament.
The legislation passed in a late-night sitting of parliament on Thursday with amendments agreed to by the government and the coalition.
The bill, which has been fast-tracked through parliament, will impose conditions on former detainees such as ankle-tracking devices and curfews.