]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Set builtin to no when module is created from path.
authorMichal Suchanek <msuchanek@suse.de>
Wed, 18 Aug 2021 20:52:00 +0000 (22:52 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 20 Jan 2022 08:46:13 +0000 (00:46 -0800)
commit4e391ac92d1b9a2c8c0e9d8735d2913ee86c0ad8
tree28e99e9b92872af3189bb502b4a7c987c710f200
parent43bdf97ce1298c8727effb470291ed884e1161e6
libkmod: Set builtin to no when module is created from path.

A recent bug report showed that modinfo doesn't give the signature
information for certain modules, and it turned out to happen only on
the modules that are built-in on the running kernel; then modinfo
skips the signature check, as if the target module file never exists.
The behavior is, however, inconsistent when modinfo is performed for
external modules (no matter which kernel version is) and the module
file path is explicitly given by a command-line argument, which
guarantees the presence of the module file itself.

Fixes: e7e2cb61fa9f ("modinfo: Show information about built-in modules")
Link: https://lore.kernel.org/linux-modules/CAKi4VAJVvY3=JdSZm-GD1hJqyCPYaYz-jBJ_REeY5BakVb6_ww@mail.gmail.com/
BugLink: https://bugzilla.opensuse.org/show_bug.cgi?id=1189537
Suggested-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
libkmod/libkmod-module.c