diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-28 09:18:21 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-28 14:53:54 -0400 |
commit | bb4d269087d11623e15d1aa3c8cb197f29a601d1 (patch) | |
tree | 1927db4a75af39689b937df14c30c423f00bea08 /cmd/podman/common/create_opts.go | |
parent | 288ebec6e737c105fa0ef43412de4e0a8997feb9 (diff) | |
download | podman-bb4d269087d11623e15d1aa3c8cb197f29a601d1.tar.gz podman-bb4d269087d11623e15d1aa3c8cb197f29a601d1.tar.bz2 podman-bb4d269087d11623e15d1aa3c8cb197f29a601d1.zip |
Specifying --ipc=host --pid=host is broken
For some reason we were overwriting memory when handling both
--pid=host and --ipc=host. Simplified the code to handle this
correctly, and add test to make sure it does not happen again.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common/create_opts.go')
-rw-r--r-- | cmd/podman/common/create_opts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go index 3802c37b0..f9e4d7ca5 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -10,7 +10,7 @@ type ContainerCLIOpts struct { BlkIOWeightDevice []string CapAdd []string CapDrop []string - CGroupsNS string + CgroupNS string CGroupsMode string CGroupParent string CIDFile string |