From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F19473B27F9 for ; Wed, 8 Apr 2026 11:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.190.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775649574; cv=none; b=OQ0cFU+CPs486Kaduq+zVKowuhLq/Mq7YIFjcM0rxsM/+MQn8nNatt4wDi3vw8TUHxn01iTpWUgIVXikI7nEAkTtEoPQu4aNH0QSwv8p/SKMpnuVbG+S8JtNLSWwm9uUr7KD9jjJsmJZ1bcOFKHRPH62UXavslOKHhDQrwIBJ+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775649574; c=relaxed/simple; bh=2MjC5VNZm6To9bNvwN9eeGPeAMXqmUphZQ75Dljp8ho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N17H4QfpULugSpgH7ErNkFlFaFQt0pbcwo0IrB9ZEpEOh/2vCr76nEAYhlZ6yCbH6X3tj6GaL/L1Fgj4We2e+Jgw7AN/ot+s3orMsP5bWXPJ5aKk1TEAGoY/u1G3/HD+gE7nR5AopGMYcyr2Q1+OwPYsWJVptmKQJE5UdZNMvdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b=iuzd1VJg; arc=none smtp.client-ip=217.70.190.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="iuzd1VJg" Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id 1A41760337; Wed, 8 Apr 2026 13:59:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org; s=2025; t=1775649568; bh=8G2ELB2sHrUVwCIt96IH8En0a1242BTbK/uFKVH7C50=; h=From:To:Cc:Subject:Date:From; b=iuzd1VJgtGjkd1wtrLytT++rDuI77TXo6qbJJ3goSjDtERS9PdpCixP/RwpVwveAl pPT2s1fTJsjsJwpMEnzXoKbnZgr/EgJ7Spk3PZ+kqx4gT+orzftQZ0ncs7dzdcbinP LFN7zKYOcu1QjK7FhWwyFuxgFGGnYLw0lnd6WSS3UwJq8yCMfRMk6Tug9wFk/1gevF L32Hogekna2UeBCIoXGCOwj2a5C5FkPaUdd6+qZ6qicAm7FCo1kYLwV24Faynw52ju SvWgi+6uPaFoOmiddBz3L8PiKf7P5c612ub5bukL7eHqe5VxXKxQYZ4dwEakpwUhuq Rt0yDjjotyEEA== From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: phil@nwl.cc, fw@strlen.de Subject: [PATCH nft 0/5] support for several list and reset commands Date: Wed, 8 Apr 2026 13:59:17 +0200 Message-ID: <20260408115922.48676-1-pablo@netfilter.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Phil, This is alternative proposal to address the issue reported in this patch: https://patchwork.ozlabs.org/project/netfilter-devel/patch/20260311194100.21983-1-phil@nwl.cc/ On top of this, it aims at addressing a longstanding issue, which is to allow users to add a list command in their .nft files. Please, see 5/5 for details. Comments welcome, thanks. Pablo Neira Ayuso (5): libnftables: report EPERM to non-root users with -f/--filename libnftables: add nft_run_cmd_release() helper and use it libnftables: consolidate evaluation and netlink run libnftables: use nft_eval_run_cmds() in nft_run_cmd_from_filename() libnftables: support for several list and reset commands include/cmd.h | 10 ++++ src/cmd.c | 100 +++++++++++++++++++++++++++++++++- src/libnftables.c | 133 +++++++++++++++++++++++++++------------------ src/parser_bison.y | 12 +++- src/parser_json.c | 9 +-- 5 files changed, 203 insertions(+), 61 deletions(-) -- 2.47.3