Merge pull request #9747 from AkihiroSuda/revert-9713

Revert "cri: make read-only mounts recursively read-only"
This commit is contained in:
Akihiro Suda
2024-02-08 10:29:03 +00:00
committed by GitHub
11 changed files with 8 additions and 387 deletions

View File

@@ -683,9 +683,7 @@ func (c *criService) buildLinuxSpec(
}
}()
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel, &customopts.RuntimeConfig{
TreatRoMountsAsRro: ociRuntime.TreatRoMountsAsRroResolved,
}))
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel))
if !c.config.DisableProcMount {
// Change the default masked/readonly paths to empty slices

View File

@@ -597,7 +597,7 @@ func TestMountPropagation(t *testing.T) {
var spec runtimespec.Spec
spec.Linux = &runtimespec.Linux{}
err := opts.WithMounts(c.os, config, []*runtime.Mount{test.criMount}, "", nil)(context.Background(), nil, nil, &spec)
err := opts.WithMounts(c.os, config, []*runtime.Mount{test.criMount}, "")(context.Background(), nil, nil, &spec)
if test.expectErr {
require.Error(t, err)
} else {