Skip to content

Commit b576d9f

Browse files
poetteringbluca
authored andcommitted
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 c18a102) (cherry picked from commit b4db0ca) (cherry picked from commit 65dca61)
1 parent 342c67d commit b576d9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/units/util.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ create_dummy_container() {
156156
fi
157157

158158
mkdir -p "$root"
159+
chmod 555 "$root"
159160
cp -a /testsuite-13-container-template/* "$root"
160161
coverage_create_nspawn_dropin "$root"
161162
}

0 commit comments

Comments
 (0)