From: Eric Biggers <[email protected]>

Otherwise it is inaccessible to non-root users on systems that use a
umask of 0077.

Signed-off-by: Eric Biggers <[email protected]>
---
 root_image | 1 +
 1 file changed, 1 insertion(+)

diff --git a/root_image b/root_image
index f2f36a4..964c791 100755
--- a/root_image
+++ b/root_image
@@ -331,10 +331,11 @@ cmd_create()
 
     MNT=$(mktemp --tmpdir -d $(basename "$0")-XXXXXXXXXX)
     #trap 'umount_image; rm "$ktest_image"' EXIT
 
     fallocate -l "$IMAGE_SIZE" "$ktest_image"
+    chmod 644 "$ktest_image"
     mkfs.ext4 -F "$ktest_image"
     mount "$ktest_image" "$MNT"
 
     DEBOOTSTRAP_DIR=$ktest_dir/debootstrap $debootstrap        \
        --no-check-gpg                                  \

base-commit: 53229b36f8c4df0690af64dedfce3e247334505e
-- 
2.49.0


Reply via email to