mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix security bug for kvm
This commit is contained in:
parent
ae4bd0fb70
commit
eebb1021c1
@ -395,7 +395,7 @@ def cleanup_rules_for_dead_vms():
|
|||||||
def cleanup_rules():
|
def cleanup_rules():
|
||||||
try:
|
try:
|
||||||
|
|
||||||
chainscmd = "iptables-save | grep '^:' | awk '{print $1}' | cut -d':' -f2"
|
chainscmd = "iptables-save | grep '^:' | grep '.*-def' | awk '{print $1}' | cut -d':' -f2"
|
||||||
chains = execute(chainscmd).split('\n')
|
chains = execute(chainscmd).split('\n')
|
||||||
cleaned = 0
|
cleaned = 0
|
||||||
cleanup = []
|
cleanup = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user