]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_queue: validate dependencies to avoid breaking atomicity
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Tue, 5 Jan 2016 00:28:05 +0000 (09:28 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jan 2016 12:25:03 +0000 (13:25 +0100)
commita9a1325b918b4bda9b77e675f8edb8df5dae7522
tree3ee4a51ee26ef1ac362119f9168c98c33a4b609b
parentcf60291bd79c5a4f71b7f6031e4fa3243af737f4
netfilter: nfnetlink_queue: validate dependencies to avoid breaking atomicity

Check that dependencies are fulfilled before updating the queue
instance, otherwise we can leave things in intermediate state on errors
in nfqnl_recv_config().

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue.c