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: v257-rc3~11 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=c18a1024643809c8f28799900af4e6202623f934;p=systemd%2F.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. --- 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" }