diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-01-23 17:12:13 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-25 04:30:15 +0000 |
commit | 50d4cd28682dccb7cdc8576327fcca65d848dff8 (patch) | |
tree | 2547ec39fb02ddd6813a895b8dbcc03063ba6fdc /cmd/podman | |
parent | 12e3d9d8a26d2c33d587dba9b7ea5b0dcfd92eea (diff) | |
download | podman-50d4cd28682dccb7cdc8576327fcca65d848dff8.tar.gz podman-50d4cd28682dccb7cdc8576327fcca65d848dff8.tar.bz2 podman-50d4cd28682dccb7cdc8576327fcca65d848dff8.zip |
Save --privileged state
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #255
Approved by: mheon
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/inspect.go | 2 | ||||
-rw-r--r-- | cmd/podman/spec.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go index 5e9fc53bb..01de6587d 100644 --- a/cmd/podman/inspect.go +++ b/cmd/podman/inspect.go @@ -188,7 +188,7 @@ func getCtrInspectInfo(ctr *libpod.Container, ctrInspectData *libpod.ContainerIn MemorySwappiness: memSwappiness, OomKillDisable: memDisableOOMKiller, PidsLimit: pidsLimit, - Privileged: spec.Process.NoNewPrivileges, + Privileged: config.Privileged, ReadonlyRootfs: spec.Root.Readonly, Runtime: ctr.RuntimeName(), NetworkMode: string(createArtifact.NetMode), diff --git a/cmd/podman/spec.go b/cmd/podman/spec.go index cb9efdcb2..d18da79ea 100644 --- a/cmd/podman/spec.go +++ b/cmd/podman/spec.go @@ -608,6 +608,7 @@ func (c *createConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, er options = append(options, libpod.WithHosts(c.HostAdd)) } + options = append(options, libpod.WithPrivileged(c.Privileged)) return options, nil } |