summaryrefslogtreecommitdiff
path: root/cmd/podman/common/specgen.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-06 12:11:32 +0000
committerGitHub <noreply@github.com>2021-08-06 12:11:32 +0000
commit0eb2a02620e28383d3e4458854411f277d1e30f7 (patch)
tree99aa742239301d68d067070bbc5bbb2fa5f76ce5 /cmd/podman/common/specgen.go
parenta82ceafb73356d8e3ed825be2f0ad0a29b7c3761 (diff)
parent541e83ffe285cc67f4635d2dd1e7c89135140a13 (diff)
downloadpodman-0eb2a02620e28383d3e4458854411f277d1e30f7.tar.gz
podman-0eb2a02620e28383d3e4458854411f277d1e30f7.tar.bz2
podman-0eb2a02620e28383d3e4458854411f277d1e30f7.zip
Merge pull request #11141 from flouthoc/support-linux-execution-domain
personality: Add support for setting execution domain.
Diffstat (limited to 'cmd/podman/common/specgen.go')
-rw-r--r--cmd/podman/common/specgen.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index 118091855..8d6a21cb7 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -651,6 +651,12 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
if err != nil {
return err
}
+
+ if c.Personality != "" {
+ s.Personality = &specs.LinuxPersonality{}
+ s.Personality.Domain = specs.LinuxPersonalityDomain(c.Personality)
+ }
+
s.Remove = c.Rm
s.StopTimeout = &c.StopTimeout
s.Timeout = c.Timeout