From: Lucas De Marchi Date: Fri, 17 Aug 2012 12:42:47 +0000 (-0300) Subject: modprobe: Unconditionally use KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY X-Git-Tag: v10~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36ddee65620f97c34d79815a24c65993e0c84754;p=platform%2Fupstream%2Fkmod.git 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 ". --- 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;