aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-12 14:56:42 -0400
committerGitHub <noreply@github.com>2021-06-12 14:56:42 -0400
commit328174df27897b9aead1cd0d65d35756437ed690 (patch)
tree3c5eb45c216266d64774e0d1b6ac6f33253be4f8
parentc955c95b54b2f45f560e5f57f1f8513c06fc75f7 (diff)
parentd9a1c34e43e837b1d1cc607883499baafca5802c (diff)
downloadpodman-328174df27897b9aead1cd0d65d35756437ed690.tar.gz
podman-328174df27897b9aead1cd0d65d35756437ed690.tar.bz2
podman-328174df27897b9aead1cd0d65d35756437ed690.zip
Merge pull request #10635 from adrianreber/2021-06-04-privileged
Fix restoring of privileged containers
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 69ba4671e..3e4eea003 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -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.