1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

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)
(cherry picked from commit b4db0ca7534c12002717b3f198ae39907a078024)
This commit is contained in:
Lennart Poettering 2024-11-27 10:17:36 +01:00 committed by Luca Boccassi
parent 85804e690d
commit 65dca61ca0

View File

@ -164,6 +164,7 @@ create_dummy_container() {
fi
mkdir -p "$root"
chmod 555 "$root"
cp -a /testsuite-13-container-template/* "$root"
coverage_create_nspawn_dropin "$root"
}