aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-08-17 09:42:47 -0300
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-08-17 09:42:47 -0300
commit36ddee65620f97c34d79815a24c65993e0c84754 (patch)
tree8d89b487e7f79f31ed8ac10100f2eab726f3af30
parent6882017f809691d070e4df26414676d0219145d5 (diff)
downloadkmod-36ddee65620f97c34d79815a24c65993e0c84754.tar.gz
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 <ldv@altlinux.org>".
-rw-r--r--tools/modprobe.c1
1 files changed, 1 insertions, 0 deletions
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;