mirror of
https://github.com/containers/podman.git
synced 2025-07-03 17:27:18 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user