apparmor: clarify CRYPTO dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Oct 2015 19:16:29 +0000 (21:16 +0200)
committerJames Morris <james.l.morris@oracle.com>
Thu, 22 Oct 2015 00:11:28 +0000 (11:11 +1100)
commit083c1290ca73666ce1b551cc89d080d060f02ad6
treec6d808ece1f44e65e137b5bba465c498afc3e611
parent09302fd19efbff9569eaad3f78ead8f411defd87
apparmor: clarify CRYPTO dependency

The crypto framework can be built as a loadable module, but the
apparmor hash code can only be built-in, which then causes a
link error:

security/built-in.o: In function `aa_calc_profile_hash':
integrity_audit.c:(.text+0x21610): undefined reference to `crypto_shash_update'
security/built-in.o: In function `init_profile_hash':
integrity_audit.c:(.init.text+0xb4c): undefined reference to `crypto_alloc_shash'

This changes Apparmor to use 'select CRYPTO' like a lot of other
subsystems do.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/apparmor/Kconfig