From 977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 24 Jul 2018 17:53:10 +0200 Subject: podman: allow to specify the UTS namespace to join Signed-off-by: Giuseppe Scrivano Closes: #1145 Approved by: rhatdan --- pkg/spec/spec.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg') diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index 2300d268a..4b6b947d7 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -369,6 +369,9 @@ func addNetNS(config *CreateConfig, g *generate.Generator) error { func addUTSNS(config *CreateConfig, g *generate.Generator) error { utsMode := config.UtsMode + if IsNS(string(utsMode)) { + return g.AddOrReplaceLinuxNamespace(string(spec.UTSNamespace), NS(string(utsMode))) + } if utsMode.IsHost() { return g.RemoveLinuxNamespace(spec.UTSNamespace) } -- cgit v1.2.3-54-g00ecf