summaryrefslogtreecommitdiff
path: root/libpod/container_freebsd.go
blob: 7292ba37adce39c78274f54c57a0c87588bbdba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//go:build freebsd
// +build freebsd

package libpod

type containerPlatformState struct {
	// NetworkJail is the name of the container's network VNET
	// jail.  Will only be set if config.CreateNetNS is true, or
	// the container was told to join another container's network
	// 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
}