相关疑难解决方法(0)

如何安全地将 U 盘/设备插入 Linux 计算机?

将 U 盘或设备插入计算机时,始终存在设备是恶意的风险,将充当 HID 并可能对计算机造成一些损害。我怎样才能防止这个问题?在特定 USB 端口上禁用 HID 是否足够?我怎么做?

security usb hid usb-device

26
推荐指数
2
解决办法
3182
查看次数

禁用在内核中编译的内核模块(未加载)

我的服务器有两个 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)

双方ixgbeigb在内核中(而不是作为一个可加载模块)静态编译。我需要使用内核启动参数禁用该模块。

我曾尝试将以下内容附加到我的内核中,但没有效果:

igb.blacklist=yes
igb.enable=0
igb.disable=yes
Run Code Online (Sandbox Code Playgroud)

igb 网卡还在显示

如何完全禁用 igb?

boot kernel linux-kernel

18
推荐指数
1
解决办法
3850
查看次数

如何阻止内核内置的驱动程序,即不是模块的驱动程序

我使用nouveau内置于内核中的驱动程序配置和编译了 Linux 内核,即与在 Linux 内核源目录中执行时<*>相反。<M>make menuconfig

现在,我打算使用另一个驱动程序而不是nouveau. 如果nouveau是一个模块,我会blacklist nouveau在里面添加一行/etc/modprobe.d/blacklist.conf

我现在该怎么办。

drivers kernel kernel-modules modprobe linux-kernel

9
推荐指数
2
解决办法
6112
查看次数