Detention under section 250 , 252A or 259 is to be in such place and under such conditions—
as the Secretary of State may direct, or
as the Secretary of State may arrange with any person.
A person detained pursuant to directions or arrangements made by the Secretary of State under this section is deemed to be in legal custody.