cri: set default masked/readonly paths to empty paths

Fixes #5029.

Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
This commit is contained in:
Yohei Ueda
2021-02-12 13:56:41 +09:00
parent af4c55fa4a
commit 07f1df4541
2 changed files with 7 additions and 2 deletions

View File

@@ -1118,8 +1118,8 @@ func TestMaskedAndReadonlyPaths(t *testing.T) {
disableProcMount: false,
masked: nil,
readonly: nil,
expectedMasked: defaultSpec.Linux.MaskedPaths,
expectedReadonly: defaultSpec.Linux.ReadonlyPaths,
expectedMasked: []string{},
expectedReadonly: []string{},
privileged: false,
},
"should be able to specify empty paths": {