From 36ddee65620f97c34d79815a24c65993e0c84754 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 17 Aug 2012 09:42:47 -0300 Subject: [PATCH] modprobe: Unconditionally use KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY 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 ". --- tools/modprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/modprobe.c b/tools/modprobe.c index f8a2805..b108112 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -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; -- 2.7.4