From 20143cd6b0edf4756c556ed6626d6a6c6f22fb41 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 27 Apr 2020 12:41:24 +0200 Subject: 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 --- bin/gensquashfs/mkfs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/gensquashfs/mkfs.h') 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 { -- cgit v1.2.3