root_image: explicitly chmod the image to 644
PATCH 1/1 root_image: explicitly chmod the image to 644
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(+)
root_image +1 -0
@@ -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
Signature · 1 line
2.49.0
Kent Overstreet
AppliedQuoted 6 lines · Eric Biggers
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]>
Applied
Quoted 25 lines
--- root_image | 1 + 1 file changed, 1 insertion(+)root_image +1
-0@@ -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:
53229b36f8c4df0690af64dedfce3e247334505eSignature · 1 line
2.49.0