[cri] label etc files for selinux containers

Signed-off-by: Michael Crosby <michael@thepasture.io>
This commit is contained in:
Michael Crosby
2021-01-19 13:42:09 -05:00
parent 66fec3bbbf
commit a731039238
2 changed files with 25 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ func (c *criService) containerSpec(id string, sandboxID string, sandboxPid uint3
}
}()
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel))
specOpts = append(specOpts, customopts.WithMounts(c.os, config, extraMounts, mountLabel), customopts.WithRelabeledContainerMounts(mountLabel))
if !c.config.DisableProcMount {
// Apply masked paths if specified.