Merge pull request #10635 from adrianreber/2021-06-04-privileged

Fix restoring of privileged containers
This commit is contained in:
OpenShift Merge Robot
2021-06-12 14:56:42 -04:00
committed by GitHub

View File

@ -428,7 +428,7 @@ func (c *Container) setupStorage(ctx context.Context) error {
},
LabelOpts: c.config.LabelOpts,
}
if c.restoreFromCheckpoint {
if c.restoreFromCheckpoint && !c.config.Privileged {
// If restoring from a checkpoint, the root file-system
// needs to be mounted with the same SELinux labels as
// it was mounted previously.