From: Herbert Xu Date: Mon, 22 Jun 2015 02:14:19 +0000 (+0800) Subject: crypto: af_alg - Forbid the use internal algorithms X-Git-Tag: omap-for-v4.3/legacy-v2-signed~193^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15539de5c958d4943cc2f2f35f7e313bff5922b6;p=pandora-kernel.git 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 --- Reading git-diff-tree failed