mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
Added entry type to directory hash calculation
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
parent
13571ace6b
commit
42e40570e6
@ -628,6 +628,11 @@ static int calc_dir_hash(const char *file, uint8_t *hash)
|
||||
log_err("EVP_DigestUpdate() failed\n");
|
||||
return 1;
|
||||
}
|
||||
err = EVP_DigestUpdate(&ctx, &cur->de.d_type, sizeof(cur->de.d_type));
|
||||
if (!err) {
|
||||
log_err("EVP_DigestUpdate() failed\n");
|
||||
return 1;
|
||||
}
|
||||
free(cur);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user