summaryrefslogtreecommitdiff
path: root/libpod/oci_unsupported.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-01-18 10:27:51 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-02-08 15:02:23 -0500
commit2265038a55f81d559b135e5b8384959b1cd4cbfd (patch)
treee18f13d53c9eee6cf9f77d79668e99467ffd194a /libpod/oci_unsupported.go
parent2a6d8b3bd69fe2aedf9a30744befed1aead5e2b9 (diff)
downloadpodman-2265038a55f81d559b135e5b8384959b1cd4cbfd.tar.gz
podman-2265038a55f81d559b135e5b8384959b1cd4cbfd.tar.bz2
podman-2265038a55f81d559b135e5b8384959b1cd4cbfd.zip
Do not unmarshal into c.config.Spec
We try to keep c.config immutable, but Go doesn't really agree with me that things other than strings and ints can be immutable, so occasionally things like this slip through. When unmarshalling the OCI spec from disk, do it into a separate struct, to ensure we don't make lasting modifications to the spec in the Container struct (which could affect container restart). Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/oci_unsupported.go')
0 files changed, 0 insertions, 0 deletions