aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorRoberto Sassu <[email protected]>2021-07-23 08:53:04 +0000
committerMimi Zohar <[email protected]>2021-07-23 13:27:02 +0000
commitca3c9bdb101d9b9eb3ed8a85cc0fe55915ba49de (patch)
tree46966a8fd69ed70c7223b0c044f5244fddaef4ce /fs/ext4/fast_commit.c
parentima: Return int in the functions to measure a buffer (diff)
downloadkernel-ca3c9bdb101d9b9eb3ed8a85cc0fe55915ba49de.tar.gz
kernel-ca3c9bdb101d9b9eb3ed8a85cc0fe55915ba49de.zip
ima: Add digest and digest_len params to the functions to measure a buffer
This patch performs the final modification necessary to pass the buffer measurement to callers, so that they provide a functionality similar to ima_file_hash(). It adds the 'digest' and 'digest_len' parameters to ima_measure_critical_data() and process_buffer_measurement(). These functions calculate the digest even if there is no suitable rule in the IMA policy and, in this case, they simply return 1 before generating a new measurement entry. Signed-off-by: Roberto Sassu <[email protected]> Reviewed-by: Lakshmi Ramasubramanian <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions