mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Deprecate BridgeNfIptables and BridgeNfIp6tables fields
The netfilter module is now loaded on-demand, and no longer during daemon startup, making these fields obsolete. These fields are now always `false` and will be removed in the next relase. This patch deprecates: - the `BridgeNfIptables` field in `api/types/system.Info` - the `BridgeNfIp6tables` field in `api/types/system.Info` - the `BridgeNFCallIPTablesDisabled` field in `pkg/sysinfo.SysInfo` - the `BridgeNFCallIP6TablesDisabled` field in `pkg/sysinfo.SysInfo` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -27,9 +27,13 @@ type SysInfo struct {
|
||||
IPv4ForwardingDisabled bool
|
||||
|
||||
// Whether bridge-nf-call-iptables is supported or not
|
||||
//
|
||||
// Deprecated: netfilter module is now loaded on-demand and no longer during daemon startup, making this field obsolete. This field is always false and will be removed in the next release.
|
||||
BridgeNFCallIPTablesDisabled bool
|
||||
|
||||
// Whether bridge-nf-call-ip6tables is supported or not
|
||||
//
|
||||
// Deprecated: netfilter module is now loaded on-demand and no longer during daemon startup, making this field obsolete. This field is always false and will be removed in the next release.
|
||||
BridgeNFCallIP6TablesDisabled bool
|
||||
|
||||
// Whether the cgroup has the mountpoint of "devices" or not
|
||||
|
||||
@@ -267,8 +267,6 @@ func applyDevicesCgroupInfo(info *SysInfo) {
|
||||
// applyNetworkingInfo adds networking information to the info.
|
||||
func applyNetworkingInfo(info *SysInfo) {
|
||||
info.IPv4ForwardingDisabled = !readProcBool("/proc/sys/net/ipv4/ip_forward")
|
||||
info.BridgeNFCallIPTablesDisabled = !readProcBool("/proc/sys/net/bridge/bridge-nf-call-iptables")
|
||||
info.BridgeNFCallIP6TablesDisabled = !readProcBool("/proc/sys/net/bridge/bridge-nf-call-ip6tables")
|
||||
}
|
||||
|
||||
// applyAppArmorInfo adds whether AppArmor is enabled to the info.
|
||||
|
||||
Reference in New Issue
Block a user