Skip to content

Commit 65dca61

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)
1 parent 85804e6 commit 65dca61

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
@@ -164,6 +164,7 @@ create_dummy_container() {
164164
fi
165165

166166
mkdir -p "$root"
167+
chmod 555 "$root"
167168
cp -a /testsuite-13-container-template/* "$root"
168169
coverage_create_nspawn_dropin "$root"
169170
}

0 commit comments

Comments
 (0)