From e7f6f60b0b2d06ebd9dbbd6163111b979b34188e Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 1 Apr 2025 20:39:31 -0700 Subject: root_image: explicitly chmod the image to 644 Otherwise it is inaccessible to non-root users on systems that use a umask of 0077. Signed-off-by: Eric Biggers Signed-off-by: Kent Overstreet --- 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 @@ -333,6 +333,7 @@ cmd_create() #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" -- cgit v1.2.3