]> git.baikalelectronics.ru Git - kernel.git/commitdiff
netfilter: cthelper: add missing attribute validation for cthelper
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:08:31 +0000 (21:08 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Mar 2020 01:28:08 +0000 (02:28 +0100)
Add missing attribute validation for cthelper
to the netlink policy.

Fixes: fd925a24e9bc ("netfilter: add user-space connection tracking helper infrastructure")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_cthelper.c

index de3a9596b7f1bca045b8683bc48f66230fb65e75..a5f294aa8e4cf9c3ef361d775de6f8707d2f1143 100644 (file)
@@ -742,6 +742,8 @@ static const struct nla_policy nfnl_cthelper_policy[NFCTH_MAX+1] = {
        [NFCTH_NAME] = { .type = NLA_NUL_STRING,
                         .len = NF_CT_HELPER_NAME_LEN-1 },
        [NFCTH_QUEUE_NUM] = { .type = NLA_U32, },
+       [NFCTH_PRIV_DATA_LEN] = { .type = NLA_U32, },
+       [NFCTH_STATUS] = { .type = NLA_U32, },
 };
 
 static const struct nfnl_callback nfnl_cthelper_cb[NFNL_MSG_CTHELPER_MAX] = {