]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: af_alg - Forbid the use internal algorithms
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 22 Jun 2015 02:14:19 +0000 (10:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 22 Jun 2015 07:49:30 +0000 (15:49 +0800)
commita0dfdff5978906a3af5ef5a1051c5794e4189a14
treeb1534509e5e6f08737bc23da9eb690a34e75141f
parent4bc819ce566639288cdba99aaf0553a2bba077f1
crypto: af_alg - Forbid the use internal algorithms

The bit CRYPTO_ALG_INTERNAL was added to stop af_alg from accessing
internal algorithms.  However, af_alg itself was never modified to
actually stop that bit from being used by the user.  Therefore the
user could always override it by specifying the relevant bit in the
type and/or mask.

This patch silently discards the bit in both type and mask.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c