From c7cd8bd5edeca20f1807dfc5ac7127417509e77a Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 16 Dec 2021 19:22:23 +0100 Subject: implement parser for xattr files as produced by getfattr --dump XXX --- bin/gensquashfs/mkfs.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin/gensquashfs/mkfs.h') diff --git a/bin/gensquashfs/mkfs.h b/bin/gensquashfs/mkfs.h index 2697d3e..1254770 100644 --- a/bin/gensquashfs/mkfs.h +++ b/bin/gensquashfs/mkfs.h @@ -44,6 +44,7 @@ typedef struct { unsigned int dirscan_flags; const char *infile; const char *selinux; + const char *xattr_file; const char *sortfile; bool no_tail_packing; @@ -62,7 +63,14 @@ typedef struct { void process_command_line(options_t *opt, int argc, char **argv); int xattrs_from_dir(fstree_t *fs, const char *path, void *selinux_handle, - sqfs_xattr_writer_t *xwr, bool scan_xattr); + void *xattr_map, sqfs_xattr_writer_t *xwr, bool scan_xattr); + +void *xattr_open_map_file(const char *path); + +int +xattr_apply_map_file(char *path, void *map, sqfs_xattr_writer_t *xwr); + +void xattr_close_map_file(void *xattr_map); void *selinux_open_context_file(const char *filename); -- cgit v1.2.3