1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +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)
This commit is contained in:
Lennart Poettering 2024-11-27 10:17:36 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6f346ef756
commit b4db0ca753

View File

@ -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"
}