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 A3F0BC6FA99 for ; Fri, 10 Mar 2023 11:46:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229742AbjCJLqe (ORCPT ); Fri, 10 Mar 2023 06:46:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjCJLqe (ORCPT ); Fri, 10 Mar 2023 06:46:34 -0500 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFEB71111C6 for ; Fri, 10 Mar 2023 03:46:09 -0800 (PST) Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.94.2) (envelope-from ) id 1pabCK-0001Zy-8c; Fri, 10 Mar 2023 12:46:08 +0100 Date: Fri, 10 Mar 2023 12:46:08 +0100 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: Re: [nft PATCH v2] Reject invalid chain priority values in user space Message-ID: Mail-Followup-To: Phil Sutter , Pablo Neira Ayuso , netfilter-devel@vger.kernel.org References: <20230310112348.32373-1-phil@nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230310112348.32373-1-phil@nwl.cc> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Fri, Mar 10, 2023 at 12:23:48PM +0100, Phil Sutter wrote: > The kernel doesn't accept nat type chains with a priority of -200 or > below. Catch this and provide a better error message than the kernel's > EOPNOTSUPP. > > Signed-off-by: Phil Sutter Patch applied.