Skip to main content
Add other options.
Source Link
Stephen Kitt
  • 481.3k
  • 60
  • 1.2k
  • 1.4k

If CONFIG_KALLSYMS is enabled, built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

If it isn’t, you won’t be able to disable only your webcam using kernel command line parameters, but you can control your webcam at run-time; find its entry in /sys/bus/usb/devices, and write 0 to the corresponding authorized file, e.g.

echo 0 | sudo tee /sys/bus/usb/devices/1-8/authorized

Write 1 to enable the camera again.

You can use USBGuard to provide control over all your USB devices, including your webcam.

If CONFIG_KALLSYMS is enabled, built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

If CONFIG_KALLSYMS is enabled, built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

If it isn’t, you won’t be able to disable only your webcam using kernel command line parameters, but you can control your webcam at run-time; find its entry in /sys/bus/usb/devices, and write 0 to the corresponding authorized file, e.g.

echo 0 | sudo tee /sys/bus/usb/devices/1-8/authorized

Write 1 to enable the camera again.

You can use USBGuard to provide control over all your USB devices, including your webcam.

Oops, this needs CONFIG_KALLSYMS.
Source Link
Stephen Kitt
  • 481.3k
  • 60
  • 1.2k
  • 1.4k

BuiltIf CONFIG_KALLSYMS is enabled, built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

Built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

If CONFIG_KALLSYMS is enabled, built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.

Source Link
Stephen Kitt
  • 481.3k
  • 60
  • 1.2k
  • 1.4k

Built-in drivers can be disabled by disabling their init function. For uvcvideo (which is likely to be the driver used for your webcam), add

initcall_blacklist=uvc_video_init

to your kernel’s command line.