]> git.baikalelectronics.ru Git - kernel.git/commit
net, cls: also reject deleting all filters when TCA_KIND present
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 16 Jun 2016 21:19:29 +0000 (23:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2016 05:50:16 +0000 (22:50 -0700)
commit5d8fee3c5fcefa7dd3b6994176a806473e313c0d
tree6b7640286c1f14d7bb12f04e621d7bf211c7b847
parent90478676c6fb4e8d4966ba5066d1426a1d4da61e
net, cls: also reject deleting all filters when TCA_KIND present

When we check for RTM_DELTFILTER, we should also reject the request
for deleting all filters under a given parent when TCA_KIND attribute
is present. If present, it's currently just ignored but there's also
no point to let it pass in the first place either since this doesn't
have any meaning with wild-card removal.

Fixes: a77d14c6b28d ("net, cls: allow for deleting all filters for given parent")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c