Signed-off-by: Alexey Gladkov <email address hidden>
(cherry picked from commit e7e2cb61fa9f1db3429d91ef6accff549500d268)
[PHLin: can be applied with -C1]
Signed-off-by: Po-Hsu Lin <email address hidden>
New modules.builtin.modinfo duplicates modules.builtin in the built-in
module name search. If it exists, then we can use this file, but if not,
then we need to fallback to the old file.
Signed-off-by: Alexey Gladkov <email address hidden>
(cherry picked from commit b866b2165ae6cf18fb26b635f4a7ee57c0334731)
[PHLin: can be applied with -C1]
Signed-off-by: Po-Hsu Lin <email address hidden>
The kernel since version v5.2-rc1 exports information about built-in
modules in the modules.builtin.modinfo. Information is stored in
the same format as in the separate modules (null-terminated string
array). The module name is a prefix for each line.
$ tr '\0' '\n' < modules.builtin.modinfo
ext4.softdep=pre: crc32c
ext4.license=GPL
ext4.description=Fourth Extended Filesystem
ext4.author=Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others
ext4.alias=fs-ext4
ext4.alias=ext3
ext4.alias=fs-ext3
ext4.alias=ext2
ext4.alias=fs-ext2
md_mod.alias=block-major-9-*
md_mod.alias=md
md_mod.description=MD RAID framework
md_mod.license=GPL
md_mod.parmtype=create_on_open:bool
md_mod.parmtype=start_dirty_degraded:int
...
Signed-off-by: Alexey Gladkov <email address hidden>
(backported from commit 60084cf1cb24dc3a257976c0d539a4c3ffda5db5)
[PHLin: without changes in 391b4714 libkmod-signature: implement pkcs7 parsing with openssl]
Signed-off-by: Po-Hsu Lin <email address hidden>