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:
parent
85804e690d
commit
65dca61ca0
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user