1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 06:33:36 +02:00

llistxattr returns 0 if there are no xattrs and it is valid

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
Dmitry Kasatkin 2012-05-18 12:40:13 +03:00
parent 76f3496455
commit 13571ace6b

View File

@ -418,7 +418,7 @@ static int calc_evm_hash(const char *file, unsigned char *hash)
log_info("generation: %u\n", generation);
list_size = llistxattr(file, list, sizeof(list));
if (list_size <= 0) {
if (list_size < 0) {
log_err("llistxattr() failed\n");
return -1;
}