Section 8(1) of the Surveillance Devices Act 2007 does not apply to the installation, use or maintenance of an optical surveillance device--
(a) in connection with the removal of a child or young person from a place or premises under section 43 or 48, or
(b) in the execution of a search warrant issued under section 233 (including the use of an optical surveillance device to record any activity in connection with the execution of the warrant), or
(c) in exercising a function under section 241(1)(d).