]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
modprobe: Unconditionally use KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 17 Aug 2012 12:42:47 +0000 (09:42 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 17 Aug 2012 12:42:47 +0000 (09:42 -0300)
This fixes a change in behavior regarding kmod and module-init-tools:
when trying to load a module by alias, we should check if it's
blacklisted, regardless of the command line arguments passed.

This was reported by "Dmitry V. Levin <ldv@altlinux.org>".

tools/modprobe.c

index f8a2805f685e5d1e60cbfc72d79a656cc079bb6e..b108112ff8c92a522e0242a6f0768efbfd9d9a6a 100644 (file)
@@ -582,6 +582,7 @@ static int insmod(struct kmod_ctx *ctx, const char *alias,
        if (do_show || verbose > DEFAULT_VERBOSE)
                show = &print_action;
 
+       flags |= KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY;
 
        if (use_blacklist)
                flags |= KMOD_PROBE_APPLY_BLACKLIST;