From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1275C64EC7 for ; Tue, 21 Feb 2023 18:00:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbjBUSA5 (ORCPT ); Tue, 21 Feb 2023 13:00:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231555AbjBUSA5 (ORCPT ); Tue, 21 Feb 2023 13:00:57 -0500 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5D094 for ; Tue, 21 Feb 2023 10:00:55 -0800 (PST) Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.94.2) (envelope-from ) id 1pUWwf-0006D2-5c; Tue, 21 Feb 2023 19:00:53 +0100 Date: Tue, 21 Feb 2023 19:00:53 +0100 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org, Eric Garver Subject: Re: [PATCH nft 2/2] rule: expand standalone chain that contains rules Message-ID: Mail-Followup-To: Phil Sutter , Pablo Neira Ayuso , netfilter-devel@vger.kernel.org, Eric Garver References: <20230206142841.594538-1-pablo@netfilter.org> <20230206142841.594538-2-pablo@netfilter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230206142841.594538-2-pablo@netfilter.org> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Hi Pablo, On Mon, Feb 06, 2023 at 03:28:41PM +0100, Pablo Neira Ayuso wrote: > Otherwise rules that this chain contains are ignored when expressed > using the following syntax: > > chain inet filter input2 { > type filter hook input priority filter; policy accept; > ip saddr 1.2.3.4 tcp dport { 22, 443, 123 } drop > } > > and importing chain definitions like these from another file. > > When expanding the chain, remove the rule so the new CMD_OBJ_CHAIN > case does not expand it again. > > Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1655 > Signed-off-by: Pablo Neira Ayuso This commit happens to break a pretty simple use-case: # nft -f - <