The RCMP has admitted it deploys spyware that turns on and logs the camera and microphone of surveillance targets.