summaryrefslogtreecommitdiff
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-04-08 10:25:44 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-04-08 10:27:49 +0300
commit83ab02230115eab725bf92f111f4a3f2a41db5b1 (patch)
tree546b0f9a8ceb1aefc3b36ef000f3354784c13dbd /src/apk_io.h
parent944eae4b27d039608dd72b1d7b3ed015c20bdcc0 (diff)
downloadapk-tools-83ab02230115eab725bf92f111f4a3f2a41db5b1.tar.gz
apk-tools-83ab02230115eab725bf92f111f4a3f2a41db5b1.tar.bz2
apk-tools-83ab02230115eab725bf92f111f4a3f2a41db5b1.tar.xz
apk-tools-83ab02230115eab725bf92f111f4a3f2a41db5b1.zip
audit xattrs
ref #3027
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index ee81851..6e2e37c 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -149,6 +149,8 @@ apk_blob_t apk_blob_from_file(int atfd, const char *file);
int apk_blob_to_file(int atfd, const char *file, apk_blob_t b, unsigned int flags);
#define APK_FI_NOFOLLOW 0x80000000
+#define APK_FI_XATTR_CSUM(x) (((x) & 0xff) << 8)
+#define APK_FI_CSUM(x) (((x) & 0xff))
int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags,
struct apk_file_info *fi);
void apk_fileinfo_hash_xattr(struct apk_file_info *fi);