1
0
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:
Dmitry Kasatkin 2012-05-18 12:41:31 +03:00
parent 13571ace6b
commit 42e40570e6

View File

@ -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);
}