centos - kmod rpm 包中的 greylist.txt 是什么

标签 centos kernel kernel-module rhel

许多设备驱动程序显示为 kmod-<drivername> CentOS/RHEL 中的 rpm 包,这些包中总是有一个 greylist.txt,其内容是一些内核符号。下面是一个例子:

[root@localhost download]# rpm -ql kmod-qed
/etc/depmod.d/qed.conf
/lib/modules/3.10.0-327.36.2.el7.x86_64
/lib/modules/3.10.0-327.36.2.el7.x86_64/extra
/lib/modules/3.10.0-327.36.2.el7.x86_64/extra/qed
/lib/modules/3.10.0-327.36.2.el7.x86_64/extra/qed/qed.ko
/usr/share/doc/kmod-qed/greylist.txt

[root@localhost download]# cat /usr/share/doc/kmod-qed/greylist.txt 
bitmap_clear
bitmap_set
__fentry__
ioremap_wc
pci_enable_msi_range
pci_enable_msix_range
pci_ioremap_bar
pci_is_pcie
pci_read_config_byte
pci_read_config_word
pci_save_state
release_firmware
request_firmware
__smp_mb__after_atomic
__stack_chk_fail
synchronize_irq
tasklet_init
__tasklet_schedule
vzalloc
x86_dma_fallback_dev
zlib_inflate
zlib_inflateEnd
zlib_inflateInit2
zlib_inflate_workspacesize

我想这一定与内核 ABI 白名单有关,但这个 greylist 的目的到底是什么?文件?以及它是如何在打包 kmod rpm 时生成的。

谢谢。

最佳答案

在没有更好的答案的情况下,我可以告诉你,因为它在 /usr/share/doc 下,所以它应该只是文档,没有任何后果。我希望我能告诉你目的以及它是如何产生的。只能看到不是打包时生成的。您可以在 Spec 文件中看到它作为静态源包含在内。 (捕获 SRPM 看看。)

关于centos - kmod rpm 包中的 greylist.txt 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40717436/

相关文章:

apache - 使用 .htaccess 的基于位置的重定向

Linux - 在一定时间内重复执行一条命令

Windows内核内存保护

Android:使用 KGDB 进行内核调试

linux - 通过用户空间 I/O (UIO) Linux 驱动程序与 QEMU edu 设备连接

networking - 没有 DHCP 的 PXE 网络安装

linux - 在 Linux 上将 hwclock 设置为 UTC

Android VM 在 Launch Mac 上崩溃

c - Linux内核线程: How to pass the Linux module write function as the function that the thread has to execute?

编译可加载内核模块(Debian/Ubuntu)