Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1410935imm; Thu, 5 Jul 2018 22:52:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcq89pQCOCxnf13ulriasbfprsPFP4BU06uU9V3XL2KcAdM4PxgdIj8d3UW7luIuIhH+vQj X-Received: by 2002:a63:67c3:: with SMTP id b186-v6mr8251515pgc.5.1530856357447; Thu, 05 Jul 2018 22:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530856357; cv=none; d=google.com; s=arc-20160816; b=gBBc8u+UrUxrLUg4I8LAS/kzQCisLt+pnvsgOY/QAVUxur2CQp+bG33FSaaQvhpAPI 5oz2P+KtZxqZO11wlpLDTNT/dFYtOvmgWTmKPde8rzDqGh6Dn78qHuKn08TOYy4sHu3l q96CR42TswU1vTSoPmr01eBV+v0cz/lU6ci7cZ4P2+w4gkCDHmYUg6pPTOojbYYb4LgB IsxERWfJK+MtSGhk5RBBtM3gbg7laNXekNy5EwikSP2PHez+WsGh2AEVUVDOm7nE8/7z QCtXtOnlc9TNVK3GeKwUz+Hanellb/PIoZkk/pMx2uWLHYYvprdINjvrvjxRsk4ouGas 6IKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8FO3qgHoMJsKWFWJDM/ziCeydv+ymDqTiJlLG+zuYIQ=; b=ItY5QgPGqPV6p1rVhm6NHWK0ymjOcSgWYkX0D8qMMuwq7WGIuixW9FGNXeQIs3TsWD V/LbwS4w8pIC669S966mAjRy78vWp8yrKAK/leJH4G2xPsbHBCQIn5Fh53azFp1uvLxG ciRv8itqBGOYc6KzSvLx0xFmYvNoeycKTu1EpRb2s+EFvFhR0ziWl8lQGhjjGLMi3+rU ah7DjpTUB8mj5EQu4+U0cf7VeDNywcpRqslUFEp/gTR6Y9xMBOf1Ye11HMrGP43fsXNA k1nN+6kf3Zust8ErjxiuVwm3C567/DuHe0hMWEtqJQQVzVaiwXB23JSLGbR4DlJ8diQv UZeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17-v6si6878023pgv.383.2018.07.05.22.52.23; Thu, 05 Jul 2018 22:52:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934211AbeGFFvR (ORCPT + 99 others); Fri, 6 Jul 2018 01:51:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934160AbeGFFvJ (ORCPT ); Fri, 6 Jul 2018 01:51:09 -0400 Received: from localhost (D57D388D.static.ziggozakelijk.nl [213.125.56.141]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A9D2D86A; Fri, 6 Jul 2018 05:51:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Westphal , Pablo Neira Ayuso Subject: [PATCH 4.14 32/61] netfilter: nf_tables: add missing netlink attrs to policies Date: Fri, 6 Jul 2018 07:46:56 +0200 Message-Id: <20180706054713.562781496@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180706054712.332416244@linuxfoundation.org> References: <20180706054712.332416244@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Westphal commit 467697d289e7e6e1b15910d99096c0da08c56d5b upstream. Fixes: 8aeff920dcc9 ("netfilter: nf_tables: add stateful object reference to set elements") Fixes: f25ad2e907f1 ("netfilter: nf_tables: prepare for expressions associated to set elements") Fixes: 1a94e38d254b ("netfilter: nf_tables: add NFTA_RULE_ID attribute") Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nf_tables_api.c | 3 +++ 1 file changed, 3 insertions(+) --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -1978,6 +1978,7 @@ static const struct nla_policy nft_rule_ [NFTA_RULE_POSITION] = { .type = NLA_U64 }, [NFTA_RULE_USERDATA] = { .type = NLA_BINARY, .len = NFT_USERDATA_MAXLEN }, + [NFTA_RULE_ID] = { .type = NLA_U32 }, }; static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, @@ -3412,6 +3413,8 @@ static const struct nla_policy nft_set_e [NFTA_SET_ELEM_TIMEOUT] = { .type = NLA_U64 }, [NFTA_SET_ELEM_USERDATA] = { .type = NLA_BINARY, .len = NFT_USERDATA_MAXLEN }, + [NFTA_SET_ELEM_EXPR] = { .type = NLA_NESTED }, + [NFTA_SET_ELEM_OBJREF] = { .type = NLA_STRING }, }; static const struct nla_policy nft_set_elem_list_policy[NFTA_SET_ELEM_LIST_MAX + 1] = {