Commit 51aa719f authored by Jussi Laakkonen's avatar Jussi Laakkonen

[connman] Do not clear connman- prefixed iptables chains. JB#42674

All chains that have "connman-" prefix should be skipped by the iptables
extension. These are meant for internal use only.
parent 83e8d007
......@@ -806,6 +806,11 @@ static int iptables_clear_table(const char *table_name)
return 1;
for (chain = iptc_first_chain(h); chain; chain = iptc_next_chain(h)) {
// Skip chains with connman prefix
if (str_has_connman_prefix(chain))
continue;
if (!iptc_flush_entries(chain,h))
rval = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment