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 E93CCC6FA99 for ; Fri, 10 Mar 2023 11:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbjCJLoz (ORCPT ); Fri, 10 Mar 2023 06:44:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbjCJLoy (ORCPT ); Fri, 10 Mar 2023 06:44:54 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2916D5DEC9 for ; Fri, 10 Mar 2023 03:44:53 -0800 (PST) Date: Fri, 10 Mar 2023 12:44:50 +0100 From: Pablo Neira Ayuso To: Phil Sutter Cc: netfilter-devel@vger.kernel.org Subject: Re: [nft PATCH v2] Reject invalid chain priority values in user space Message-ID: References: <20230310112348.32373-1-phil@nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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. LGTM