将 U 盘或设备插入计算机时,始终存在设备是恶意的风险,将充当 HID 并可能对计算机造成一些损害。我怎样才能防止这个问题?在特定 USB 端口上禁用 HID 是否足够?我怎么做?
我的服务器有两个 1-Gbit 和两个 10-Gbit 板载网卡。
我需要完全禁用 1-Gbit 网卡,以便ifconfig -a不显示它们。
网卡使用不同的内核模块。10-Gbit 使用ixgbe,1-Gbit 使用igb。
01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Dell Ethernet 10G 4P X520/I350 rNDC
Kernel driver in use: ixgbe
05:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Subsystem: Dell I350 Gigabit Network Connection
Kernel driver in use: igb
Run Code Online (Sandbox Code Playgroud)
双方ixgbe并igb在内核中(而不是作为一个可加载模块)静态编译。我需要使用内核启动参数禁用该模块。
我曾尝试将以下内容附加到我的内核中,但没有效果:
igb.blacklist=yes
igb.enable=0
igb.disable=yes
Run Code Online (Sandbox Code Playgroud)
igb 网卡还在显示
如何完全禁用 igb?
我使用nouveau内置于内核中的驱动程序配置和编译了 Linux 内核,即与在 Linux 内核源目录中执行时<*>相反。<M>make menuconfig
现在,我打算使用另一个驱动程序而不是nouveau. 如果nouveau是一个模块,我会blacklist nouveau在里面添加一行/etc/modprobe.d/blacklist.conf
我现在该怎么办。
kernel ×2
linux-kernel ×2
boot ×1
drivers ×1
hid ×1
modprobe ×1
security ×1
usb ×1
usb-device ×1