aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tea.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-11-20 17:05:53 -0800
committerBen Hutchings <ben@decadent.org.uk>2015-02-20 00:49:36 +0000
commit9ffea4cb2306945b5df5f28bb8686333fe666bf1 (patch)
tree0818e276a4b4392c7e2343866f0fc339d3a0284b /crypto/tea.c
parent36323bf0f2f903867d705d8c8bd956a06a5a7be4 (diff)
downloadkernel_samsung_smdk4412-9ffea4cb2306945b5df5f28bb8686333fe666bf1.zip
kernel_samsung_smdk4412-9ffea4cb2306945b5df5f28bb8686333fe666bf1.tar.gz
kernel_samsung_smdk4412-9ffea4cb2306945b5df5f28bb8686333fe666bf1.tar.bz2
crypto: prefix module autoloading with "crypto-"
commit 5d26a105b5a73e5635eae0629b42fa0a90e07b7b upstream. This prefixes all crypto module loading with "crypto-" so we never run the risk of exposing module auto-loading to userspace via a crypto API, as demonstrated by Mathias Krause: https://lkml.org/lkml/2013/3/4/70 Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> [bwh: Backported to 3.2: - Adjust filenames - Drop changes to algorithms and drivers we don't have - Add aliases to generic C implementations that didn't need them before] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'crypto/tea.c')
-rw-r--r--crypto/tea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tea.c b/crypto/tea.c
index 412bc74..73ad43e 100644
--- a/crypto/tea.c
+++ b/crypto/tea.c
@@ -299,8 +299,8 @@ static void __exit tea_mod_fini(void)
crypto_unregister_alg(&xeta_alg);
}
-MODULE_ALIAS("xtea");
-MODULE_ALIAS("xeta");
+MODULE_ALIAS_CRYPTO("xtea");
+MODULE_ALIAS_CRYPTO("xeta");
module_init(tea_mod_init);
module_exit(tea_mod_fini);