summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2022-01-21 18:07:18 -0800
committerKir Kolyshkin <kolyshkin@gmail.com>2022-01-24 13:24:37 -0800
commit98739237eebad082b9374e8b6cfa41cada905ebb (patch)
tree09662fb586fc5222a32e15e958e3914711731688 /pkg/specgen/generate
parentbe722e59eca6cf4b8f9249825e044930d6534f74 (diff)
downloadpodman-98739237eebad082b9374e8b6cfa41cada905ebb.tar.gz
podman-98739237eebad082b9374e8b6cfa41cada905ebb.tar.bz2
podman-98739237eebad082b9374e8b6cfa41cada905ebb.zip
pkg/specgen/generate/security: fix error message
This should be Network Namespace, not Host Namespace. [NO NEW TESTS NEEDED] Fixes: 0d70df11 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/security.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/generate/security.go b/pkg/specgen/generate/security.go
index 2eaf71897..9c6709905 100644
--- a/pkg/specgen/generate/security.go
+++ b/pkg/specgen/generate/security.go
@@ -246,7 +246,7 @@ func securityConfigureGenerator(s *specgen.SpecGenerator, g *generate.Generator,
// Ignore net sysctls if --net=host
if s.NetNS.IsHost() && strings.HasPrefix(sysctlKey, "net.") {
- return errors.Wrapf(define.ErrInvalidArg, "sysctl %s=%s can't be set since Host Namespace set to host", sysctlKey, sysctlVal)
+ return errors.Wrapf(define.ErrInvalidArg, "sysctl %s=%s can't be set since Network Namespace set to host", sysctlKey, sysctlVal)
}
// Ignore uts sysctls if --uts=host