summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/inspect.go2
-rw-r--r--cmd/podman/spec.go1
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
}