@@ -84,7 +84,6 @@ function teardown() {
8484 chmod ' a=rwx,ug+s,+t' rootfs/tmp # set all bits
8585 mode=$( stat -c %A rootfs/tmp)
8686
87- # shellcheck disable=SC2016
8887 update_config ' .process.args = ["sh", "-c", "stat -c %A /tmp"]'
8988 update_config ' .mounts += [{"destination": "/tmp", "type": "tmpfs", "source": "tmpfs", "options":["noexec","nosuid","nodev","rprivate"]}]'
9089
@@ -94,7 +93,6 @@ function teardown() {
9493}
9594
9695@test " runc run with tmpfs perms" {
97- # shellcheck disable=SC2016
9896 update_config ' .process.args = ["sh", "-c", "stat -c %a /tmp/test"]'
9997 update_config ' .mounts += [{"destination": "/tmp/test", "type": "tmpfs", "source": "tmpfs", "options": ["mode=0444"]}]'
10098
@@ -113,14 +111,12 @@ function teardown() {
113111 # so it should use the directory's perms.
114112 update_config ' .mounts[-1].options = []'
115113 chmod 0710 rootfs/tmp/test
116- # shellcheck disable=SC2016
117114 runc run test_tmpfs
118115 [ " $status " -eq 0 ]
119116 [ " ${lines[0]} " = " 710" ]
120117
121118 # Add back the mode on the mount, and it should use that instead.
122119 # Just for fun, use different perms than was used earlier.
123- # shellcheck disable=SC2016
124120 update_config ' .mounts[-1].options = ["mode=0410"]'
125121 runc run test_tmpfs
126122 [ " $status " -eq 0 ]
0 commit comments