Since Linux isn't spyware and do not contain any backdoor like other popular operating system, that's another reason we all love to use this operating system. It is bit difficult for surveillance people to install an application on your Linux without special permissions or spyware doesn't work obviously on Linux like does on other OS's but if you install something from untrusted source or you physically give access to somebody to your system then there might be chances that you can be victim of surveillance and the whole scenario could be nightmare for you. There are couple of things you can do to prevent it like do OS re-install or blacklist ports and non-removable devices like webcam and microphone, by the way you should physically cover your laptop and phone camera with sticker. So without further we go, lets start doing it.

How to Blacklist/disable Webcam?

Disable/blacklist

Enable/white-list

How to Blacklist/disable Mic/Microphone?

To disbale your mic, you have to go alone with following steps since it's not possible to write for each driver.You can disable your microphone as well but you need to know which drivers your sound card is using, run the following command to find out:Now recognize your sound card and loaded module and replace it in the following command (just like I did in the previous screenshot:Disable/blacklist your microphone using this command:To enable/whitelist your microphone run this command (make sure you replace your device in the command):