aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_template.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.ibm.com>2021-11-23 13:37:52 -0500
committerMimi Zohar <zohar@linux.ibm.com>2022-05-01 16:39:36 -0400
commit246d921646c071b878480997c294db6c83215b06 (patch)
tree15becd1e0c5d5546f70a8712df57cd4a5986685b /security/integrity/ima/ima_template.c
parentima: use IMA default hash algorithm for integrity violations (diff)
downloadlinux-dev-246d921646c071b878480997c294db6c83215b06.tar.xz
linux-dev-246d921646c071b878480997c294db6c83215b06.zip
fs-verity: define a function to return the integrity protected file digest
Define a function named fsverity_get_digest() to return the verity file digest and the associated hash algorithm (enum hash_algo). This assumes that before calling fsverity_get_digest() the file must have been opened, which is even true for the IMA measure/appraise on file open policy rule use case (func=FILE_CHECK). do_open() calls vfs_open() immediately prior to ima_file_check(). Acked-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima_template.c')
0 files changed, 0 insertions, 0 deletions