From c18a1024643809c8f28799900af4e6202623f934 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Nov 2024 10:17:36 +0100 Subject: [PATCH] tests: fix access mode of root inode of throw-away container images Otherwise the root inode will typically have what mkdtemp sets up, which is something like 0700, which is weird and somewhat broken when trying to look into containers from unpriv users. --- test/units/util.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/units/util.sh b/test/units/util.sh index 51e0ad1ec0..7a39d4267e 100755 --- a/test/units/util.sh +++ b/test/units/util.sh @@ -182,6 +182,7 @@ create_dummy_container() { fi mkdir -p "$root" + chmod 555 "$root" cp -a /usr/share/TEST-13-NSPAWN-container-template/* "$root" coverage_create_nspawn_dropin "$root" } -- 2.25.1