1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-03 05:18:09 +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.
This commit is contained in:
Lennart Poettering 2024-11-27 10:17:36 +01:00 committed by Yu Watanabe
parent 0790f4e45f
commit c18a102464

View File

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