aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_freebsd.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-06 12:43:55 +0200
committerGitHub <noreply@github.com>2022-09-06 12:43:55 +0200
commit6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c (patch)
treec3504335e6f65b5262a24c88a7dac0da978ae531 /libpod/container_freebsd.go
parenta61a9525e37f6a3a76e8e12b61dac5131700e9d1 (diff)
parenta3aecf0f26971cbf178fc705d0983ee248a6492b (diff)
downloadpodman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.tar.gz
podman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.tar.bz2
podman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.zip
Merge pull request #15632 from dfr/freebsd-container
Add support for FreeBSD containers
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
+}