diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-04-17 09:44:52 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-04-17 10:05:10 +0300 |
commit | 90e760339e4cbc57b0e6c37ff994e4aa1ba0db13 (patch) | |
tree | 20f8c566eab573721321585bea5bb01ecc302985 /src/audit.c | |
parent | 60867c47c5ab4fb2214fc1c4db1e108cd7c34cee (diff) | |
download | apk-tools-90e760339e4cbc57b0e6c37ff994e4aa1ba0db13.tar.gz apk-tools-90e760339e4cbc57b0e6c37ff994e4aa1ba0db13.tar.bz2 apk-tools-90e760339e4cbc57b0e6c37ff994e4aa1ba0db13.tar.xz apk-tools-90e760339e4cbc57b0e6c37ff994e4aa1ba0db13.zip |
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"
Diffstat (limited to 'src/audit.c')
-rw-r--r-- | src/audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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'; |