[PATCH] remove EXPORT_SYMBOL(kallsyms_lookup)

From: Greg KH
Date: Thu Jun 17 2004 - 11:32:31 EST


Hi,

Distros have started to ship kernels with this patch, as it seems that
some unnamed binary module authors are already abusing this function (as
well as some open source modules, like the openib code.) I could not
find any valid reason why this symbol should be exported, so here's a
patch against 2.6.7 that removes it.

Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>

thanks,

greg k-h


diff -Nru a/kernel/kallsyms.c b/kernel/kallsyms.c
--- a/kernel/kallsyms.c Thu Jun 17 09:26:17 2004
+++ b/kernel/kallsyms.c Thu Jun 17 09:26:17 2004
@@ -320,5 +320,4 @@
}
__initcall(kallsyms_init);

-EXPORT_SYMBOL(kallsyms_lookup);
EXPORT_SYMBOL(__print_symbol);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/