Skip to content

Commit

Permalink
Merge pull request #10635 from adrianreber/2021-06-04-privileged
Browse files Browse the repository at this point in the history
Fix restoring of privileged containers
  • Loading branch information
openshift-merge-robot authored Jun 12, 2021
2 parents c955c95 + d9a1c34 commit 328174d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 328174d

Please sign in to comment.