【问题标题】:What is the greylist.txt in a kmod rpm packagekmod rpm 包中的 graylist.txt 是什么
【发布时间】:2016-11-21 10:01:46
【问题描述】:

许多设备驱动程序在 CentOS/RHEL 中显示为kmod-<drivername> rpm 包,这些包中总是有一个 graylist.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 时生成的。

谢谢。

【问题讨论】:

    标签: centos kernel kernel-module rhel


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-21
      • 1970-01-01
      • 1970-01-01
      • 2023-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多