diff options
author | Kees Cook <keescook@chromium.org> | 2014-11-20 17:05:53 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-29 17:40:57 -0800 |
commit | e635e0d5b0adac839b91cc593babcb812cba3f18 (patch) | |
tree | 46c1df33fe1748d72829db721e109bdc62d745a4 /crypto/des_generic.c | |
parent | df84281d1eead0f3e83f4c382c75bc67c180cd3d (diff) | |
download | lwn-e635e0d5b0adac839b91cc593babcb812cba3f18.tar.gz lwn-e635e0d5b0adac839b91cc593babcb812cba3f18.zip |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/des_generic.c')
-rw-r--r-- | crypto/des_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/des_generic.c b/crypto/des_generic.c index f6cf63f88468..5ec5ed544149 100644 --- a/crypto/des_generic.c +++ b/crypto/des_generic.c @@ -971,7 +971,7 @@ static struct crypto_alg des_algs[2] = { { .cia_decrypt = des3_ede_decrypt } } } }; -MODULE_ALIAS("des3_ede"); +MODULE_ALIAS_CRYPTO("des3_ede"); static int __init des_generic_mod_init(void) { @@ -989,4 +989,4 @@ module_exit(des_generic_mod_fini); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms"); MODULE_AUTHOR("Dag Arne Osvik <da@osvik.no>"); -MODULE_ALIAS("des"); +MODULE_ALIAS_CRYPTO("des"); |