From: Lennart Poettering Date: Wed, 27 Nov 2024 09:17:36 +0000 (+0100) Subject: tests: fix access mode of root inode of throw-away container images X-Git-Tag: v256.9~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4db0ca7534c12002717b3f198ae39907a078024;p=thirdparty%2Fsystemd.git 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. (cherry picked from commit c18a1024643809c8f28799900af4e6202623f934) --- diff --git a/test/units/util.sh b/test/units/util.sh index 80ae8ffc5b5..ccb194df8dc 100755 --- a/test/units/util.sh +++ b/test/units/util.sh @@ -173,6 +173,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" }