aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_freebsd.go')
-rw-r--r--libpod/container_freebsd.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpod/container_freebsd.go b/libpod/container_freebsd.go
index f9fbc4daa..7292ba37a 100644
--- a/libpod/container_freebsd.go
+++ b/libpod/container_freebsd.go
@@ -10,3 +10,13 @@ type containerPlatformState struct {
// namespace.
NetworkJail string `json:"-"`
}
+
+func networkDisabled(c *Container) (bool, error) {
+ if c.config.CreateNetNS {
+ return false, nil
+ }
+ if !c.config.PostConfigureNetNS {
+ return c.state.NetworkJail == "", nil
+ }
+ return false, nil
+}