Skip to content
Snippets Groups Projects
Commit d1f1364b authored by Timo Teräs's avatar Timo Teräs
Browse files

extract_v3: calculate xattr hash for audit

Calculate and write the xattr hash to installed database. This
will go away once installed database is migrated to new format.

Since the conversion happens on installation of the package,
the issue will get fixed the package is reinstalled (apk fix)
or upgraded to new version with apk including this commit.

fixes #10986
parent ef54b71a
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ static void apk_extract_v3_acl(struct apk_file_info *fi, struct adb_obj *o, stru ...@@ -44,6 +44,7 @@ static void apk_extract_v3_acl(struct apk_file_info *fi, struct adb_obj *o, stru
.value = value, .value = value,
}; };
} }
apk_fileinfo_hash_xattr(fi, APK_DIGEST_SHA1);
} }
static int apk_extract_v3_file(struct apk_extract_ctx *ectx, off_t sz, struct apk_istream *is) static int apk_extract_v3_file(struct apk_extract_ctx *ectx, off_t sz, struct apk_istream *is)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment