aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-27 12:41:24 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-27 12:41:24 +0200
commit20143cd6b0edf4756c556ed6626d6a6c6f22fb41 (patch)
treebcb6b8c800d55ea51179f67b19e46db5931401bf /bin/gensquashfs/mkfs.h
parent5630c5fa818a38c180ee4b859539cd37a9c2b93a (diff)
gensquashfs: Add options to globally override UID/GID values
A common use case for mksquashfs is to simply pack a directory and set a magic option to force all user/group IDs to root. This commit adds similar options to gensquashfs to maek it better suited as a direct replacement for packing an input directory. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/mkfs.h')
-rw-r--r--bin/gensquashfs/mkfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/gensquashfs/mkfs.h b/bin/gensquashfs/mkfs.h
index 1b767aa..9a36d8c 100644
--- a/bin/gensquashfs/mkfs.h
+++ b/bin/gensquashfs/mkfs.h
@@ -46,6 +46,11 @@ typedef struct {
const char *packdir;
const char *selinux;
bool no_tail_packing;
+
+ unsigned int force_uid_value;
+ unsigned int force_gid_value;
+ bool force_uid;
+ bool force_gid;
} options_t;
enum {