summaryrefslogtreecommitdiffstats
path: root/security/keys/encrypted-keys/encrypted.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.ibm.com>2022-01-24 20:26:23 +0100
committerMimi Zohar <zohar@linux.ibm.com>2022-02-15 17:52:06 +0100
commit8c54135e2e6da677291012813a26a5f1b2c8a90a (patch)
tree7310ad04d4a1c673c8fafa27d187b6ee89e9566b /security/keys/encrypted-keys/encrypted.c
parentima: rename IMA_ACTION_FLAGS to IMA_NONACTION_FLAGS (diff)
downloadlinux-8c54135e2e6da677291012813a26a5f1b2c8a90a.tar.xz
linux-8c54135e2e6da677291012813a26a5f1b2c8a90a.zip
ima: define ima_max_digest_data struct without a flexible array variable
To support larger hash digests in the 'iint' cache, instead of defining the 'digest' field as the maximum digest size, the 'digest' field was defined as a flexible array variable. The "ima_digest_data" struct was wrapped inside a local structure with the maximum digest size. But before adding the record to the iint cache, memory for the exact digest size was dynamically allocated. The original reason for defining the 'digest' field as a flexible array variable is still valid for the 'iint' cache use case. Instead of wrapping the 'ima_digest_data' struct in a local structure define 'ima_max_digest_data' struct. Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/keys/encrypted-keys/encrypted.c')
0 files changed, 0 insertions, 0 deletions