From 90e760339e4cbc57b0e6c37ff994e4aa1ba0db13 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 17 Apr 2015 09:44:52 +0300 Subject: make file install errors non-fatal, and xattr errors hidden user xattrs on tmpfs are not supported no non-grsec kernels, and many times root fs is mounted without user_xattr. Thus to allow things to go smoothly on non-grsec kernels xattr unsupported errors are now hidden. xattrs can be fixed still now with "apk fix --xattrs" --- src/audit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audit.c') diff --git a/src/audit.c b/src/audit.c index c09f994..6655cb3 100644 --- a/src/audit.c +++ b/src/audit.c @@ -110,7 +110,8 @@ static int audit_file(struct audit_ctx *actx, if (dbf->csum.type != APK_CHECKSUM_NONE && apk_checksum_compare(&fi.csum, &dbf->csum) != 0) rv = 'U'; - else if (apk_checksum_compare(&fi.xattr_csum, &dbf->acl->xattr_csum) != 0) + else if (!dbf->diri->pkg->ipkg->broken_xattr && + apk_checksum_compare(&fi.xattr_csum, &dbf->acl->xattr_csum) != 0) rv = 'x'; else if (S_ISLNK(fi.mode) && dbf->csum.type == APK_CHECKSUM_NONE) rv = 'U'; -- cgit v1.2.3-60-g2f50