diff options
author | Kees Cook <keescook@chromium.org> | 2014-11-20 17:05:53 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-24 22:43:57 +0800 |
commit | 4c76e2103ade7b1d9f14acc4d3c7fcf0f4855f18 (patch) | |
tree | f5c9d5b12004b1f27f1b282386f90d8da8db41cd /crypto/crypto_null.c | |
parent | 399c6064d2b792772f96d7b0a41ec60fbeccade6 (diff) | |
download | linux-crypto-4c76e2103ade7b1d9f14acc4d3c7fcf0f4855f18.tar.gz linux-crypto-4c76e2103ade7b1d9f14acc4d3c7fcf0f4855f18.zip |
crypto: prefix module autoloading with "crypto-"
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>
Diffstat (limited to '')
-rw-r--r-- | crypto/crypto_null.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/crypto_null.c b/crypto/crypto_null.c index 1dc54bb9..a2031913 100644 --- a/crypto/crypto_null.c +++ b/crypto/crypto_null.c @@ -145,9 +145,9 @@ static struct crypto_alg null_algs[3] = { { .coa_decompress = null_compress } } } }; -MODULE_ALIAS("compress_null"); -MODULE_ALIAS("digest_null"); -MODULE_ALIAS("cipher_null"); +MODULE_ALIAS_CRYPTO("compress_null"); +MODULE_ALIAS_CRYPTO("digest_null"); +MODULE_ALIAS_CRYPTO("cipher_null"); static int __init crypto_null_mod_init(void) { |