]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod, depmod: Load modprobe.d, depmod.d from ${prefix}/lib.
authorMichal Suchanek <msuchanek@suse.de>
Tue, 18 Jul 2023 12:01:54 +0000 (14:01 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 17 Oct 2023 17:27:59 +0000 (12:27 -0500)
commit8463809f8a29b254b2cab2ce755641bc690f07c9
treebc79914570967be61ef678706b3eba5ee8a3c978
parent4e7effbdc00307d0d1e83115e0d00cc75aae5cc6
libkmod, depmod: Load modprobe.d, depmod.d from ${prefix}/lib.

There is an ongoing effort to limit use of files outside of /usr (or
${prefix} on general). Currently all modprobe.d paths are hardcoded to
outside of $prefix. Teach kmod to load modprobe.d from ${prefix}/lib.

On some distributions /usr/lib and /lib are the same directory because
of a compatibility symlink, and it is possible to craft configuration
files with sideeffects that would behave differently when loaded twice.
However, the override semantic ensures that one 'overrides' the other,
and only one configuration file of the same name is loaded from any of
the search directories.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/a290343ce32e2a3c25b134e4f27c13b26e06c9e0.1689681454.git.msuchanek@suse.de
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Makefile.am
configure.ac
libkmod/libkmod.c
man/Makefile.am
man/depmod.d.xml
man/modprobe.d.xml
tools/depmod.c