diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2017-04-06 15:55:21 +0200 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-04-07 00:58:35 +0200 |
commit | 9814448da7a84dd50b69e4ada2d7d1c042493daf (patch) | |
tree | abfaa6213a8dc45acf36afd32f4c72a59aa7e662 /include/keys | |
parent | security/apparmor/lsm.c: set debug messages (diff) | |
download | linux-9814448da7a84dd50b69e4ada2d7d1c042493daf.tar.xz linux-9814448da7a84dd50b69e4ada2d7d1c042493daf.zip |
apparmor: use SHASH_DESC_ON_STACK
When building the kernel with clang, the compiler fails to build
security/apparmor/crypto.c with the following error:
security/apparmor/crypto.c:36:8: error: fields must have a constant
size: 'variable length array in structure' extension will never be
supported
char ctx[crypto_shash_descsize(apparmor_tfm)];
^
Since commit a0a77af14117 ("crypto: LLVMLinux: Add macro to remove use
of VLAIS in crypto code"), include/crypto/hash.h defines
SHASH_DESC_ON_STACK to work around this issue. Use it in aa_calc_hash()
and aa_calc_profile_hash().
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'include/keys')
0 files changed, 0 insertions, 0 deletions