netfilter: nf_tables: use NLM_F_NONREC for deletion requests
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 3 Sep 2017 21:56:00 +0000 (23:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Sep 2017 15:34:55 +0000 (17:34 +0200)
commita8278400809dd99eb24468c02c8d4f0cb0003eae
treeced0c8a3e75d521826c450d66e652f6e7fa9c601
parent2335ba704f32b855651d0cd15dd9b271ec565fb6
netfilter: nf_tables: use NLM_F_NONREC for deletion requests

Bail out if user requests non-recursive deletion for tables and sets.
This new flags tells nf_tables netlink interface to reject deletions if
tables and sets have content.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c