https://github.com/torvalds/linux
Revision 15539de5c958d4943cc2f2f35f7e313bff5922b6 authored by Herbert Xu on 22 June 2015, 02:14:19 UTC, committed by Herbert Xu on 22 June 2015, 07:49:30 UTC
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>
1 parent 9fcc704
History
Tip revision: 15539de5c958d4943cc2f2f35f7e313bff5922b6 authored by Herbert Xu on 22 June 2015, 02:14:19 UTC
crypto: af_alg - Forbid the use internal algorithms
Tip revision: 15539de
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.5 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 302.3 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top