Re: [PATCH 6/6] ima: Support appended signatures for appraisal

From: Thiago Jung Bauermann
Date: Thu Apr 20 2017 - 19:42:51 EST


Am Donnerstag, 20. April 2017, 11:04:40 BRT schrieb kbuild test robot:
> In file included from security/integrity/ima/ima_appraise.c:19:0:
>
> include/keys/asymmetric-type.h: In function 'asymmetric_key_ids':
> >> include/keys/asymmetric-type.h:76:12: error: dereferencing pointer to
> >> incomplete type 'const struct key'
> return key->payload.data[asym_key_ids];
> ^~

This happens with CONFIG_IMA_APPRAISE=y and CONFIG_KEYS=n.
Fixed by only including the new header files in ima_appraise.c if
CONFIG_IMA_APPRAISE_APPENDED_SIG=y

--
Thiago Jung Bauermann
IBM Linux Technology Center