mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36004 from cpuguy83/update_libnetwork
Update libnetwork commit
This commit is contained in:
commit
f909bf3590
6 changed files with 33 additions and 8 deletions
|
@ -10,7 +10,7 @@ RUNC_COMMIT=9f9c96235cc97674e935002fc3d78361b696a69e
|
|||
# fixes or new APIs.
|
||||
CONTAINERD_COMMIT=9b55aab90508bd389d7654c4baf173a981477d55 # v1.0.1
|
||||
TINI_COMMIT=949e6facb77383876aeff8a6944dde66b3089574
|
||||
LIBNETWORK_COMMIT=7b2b1feb1de4817d522cc372af149ff48d25028e
|
||||
LIBNETWORK_COMMIT=fcf1c3b5e57833aaaa756ae3c4140ea54da00319
|
||||
VNDR_COMMIT=a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384
|
||||
|
||||
# Linting
|
||||
|
|
|
@ -31,7 +31,7 @@ github.com/moby/buildkit aaff9d591ef128560018433fe61beb802e149de8
|
|||
github.com/tonistiigi/fsutil dea3a0da73aee887fc02142d995be764106ac5e2
|
||||
|
||||
#get libnetwork packages
|
||||
github.com/docker/libnetwork 315a076a4e9ded2abc950318c71d5f1637547977
|
||||
github.com/docker/libnetwork fcf1c3b5e57833aaaa756ae3c4140ea54da00319
|
||||
github.com/docker/go-events 9461782956ad83b30282bf90e31fa6a70c255ba9
|
||||
github.com/armon/go-radix e39d623f12e8e41c7b5529e9a9dd67a1e2261f80
|
||||
github.com/armon/go-metrics eb0af217e5e9747e41dd5303755356b62d28e3ec
|
||||
|
|
4
vendor/github.com/docker/libnetwork/controller.go
generated
vendored
4
vendor/github.com/docker/libnetwork/controller.go
generated
vendored
|
@ -882,9 +882,7 @@ addToStore:
|
|||
c.Unlock()
|
||||
}
|
||||
|
||||
c.Lock()
|
||||
arrangeUserFilterRule()
|
||||
c.Unlock()
|
||||
c.arrangeUserFilterRule()
|
||||
|
||||
return network, nil
|
||||
}
|
||||
|
|
20
vendor/github.com/docker/libnetwork/drivers/overlay/ov_network.go
generated
vendored
20
vendor/github.com/docker/libnetwork/drivers/overlay/ov_network.go
generated
vendored
|
@ -711,7 +711,7 @@ func (n *network) initSandbox(restore bool) error {
|
|||
n.setNetlinkSocket(nlSock)
|
||||
|
||||
if err == nil {
|
||||
go n.watchMiss(nlSock)
|
||||
go n.watchMiss(nlSock, key)
|
||||
} else {
|
||||
logrus.Errorf("failed to subscribe to neighbor group netlink messages for overlay network %s in sbox %s: %v",
|
||||
n.id, sbox.Key(), err)
|
||||
|
@ -720,7 +720,23 @@ func (n *network) initSandbox(restore bool) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (n *network) watchMiss(nlSock *nl.NetlinkSocket) {
|
||||
func (n *network) watchMiss(nlSock *nl.NetlinkSocket, nsPath string) {
|
||||
// With the new version of the netlink library the deserialize function makes
|
||||
// requests about the interface of the netlink message. This can succeed only
|
||||
// if this go routine is in the target namespace. For this reason following we
|
||||
// lock the thread on that namespace
|
||||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
newNs, err := netns.GetFromPath(nsPath)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Errorf("failed to get the namespace %s", nsPath)
|
||||
return
|
||||
}
|
||||
defer newNs.Close()
|
||||
if err = netns.Set(newNs); err != nil {
|
||||
logrus.WithError(err).Errorf("failed to enter the namespace %s", nsPath)
|
||||
return
|
||||
}
|
||||
for {
|
||||
msgs, err := nlSock.Receive()
|
||||
if err != nil {
|
||||
|
|
11
vendor/github.com/docker/libnetwork/firewall_linux.go
generated
vendored
11
vendor/github.com/docker/libnetwork/firewall_linux.go
generated
vendored
|
@ -7,6 +7,17 @@ import (
|
|||
|
||||
const userChain = "DOCKER-USER"
|
||||
|
||||
func (c *controller) arrangeUserFilterRule() {
|
||||
c.Lock()
|
||||
arrangeUserFilterRule()
|
||||
c.Unlock()
|
||||
iptables.OnReloaded(func() {
|
||||
c.Lock()
|
||||
arrangeUserFilterRule()
|
||||
c.Unlock()
|
||||
})
|
||||
}
|
||||
|
||||
// This chain allow users to configure firewall policies in a way that persists
|
||||
// docker operations/restarts. Docker will not delete or modify any pre-existing
|
||||
// rules from the DOCKER-USER filter chain.
|
||||
|
|
2
vendor/github.com/docker/libnetwork/firewall_others.go
generated
vendored
2
vendor/github.com/docker/libnetwork/firewall_others.go
generated
vendored
|
@ -2,5 +2,5 @@
|
|||
|
||||
package libnetwork
|
||||
|
||||
func arrangeUserFilterRule() {
|
||||
func (c *controller) arrangeUserFilterRule() {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue