mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Reload DOCKER-USER chain on frewalld reload.
Relates to moby/moby#35043 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
f9a14ba9dc
commit
d5fef4ca1c
3 changed files with 13 additions and 4 deletions
|
@ -882,9 +882,7 @@ addToStore:
|
|||
c.Unlock()
|
||||
}
|
||||
|
||||
c.Lock()
|
||||
arrangeUserFilterRule()
|
||||
c.Unlock()
|
||||
c.arrangeUserFilterRule()
|
||||
|
||||
return network, nil
|
||||
}
|
||||
|
|
|
@ -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,5 +2,5 @@
|
|||
|
||||
package libnetwork
|
||||
|
||||
func arrangeUserFilterRule() {
|
||||
func (c *controller) arrangeUserFilterRule() {
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue