mirror of https://github.com/containers/podman.git
Fix restoring of privileged containers
Checkpointed containers started with --privileged fail during restore with: Error: error creating container storage: ProcessLabel and Mountlabel must either not be specified or both specified This commit fixes it by not setting the labels when restoring a privileged container. [NO TESTS NEEDED] Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
d116bebdd5
commit
d9a1c34e43
|
@ -427,7 +427,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.
|
||||
|
|
Loading…
Reference in New Issue