Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1367566pxf; Fri, 19 Mar 2021 05:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg1KoCGVel7zdms0+KEio6pDjy3PjFIAAJdtw5EunwZuJ2UDhvauB4OZgRoxxX+FRT8kmI X-Received: by 2002:a17:906:ca50:: with SMTP id jx16mr4211344ejb.72.1616158468962; Fri, 19 Mar 2021 05:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616158468; cv=none; d=google.com; s=arc-20160816; b=nUEvIKHTNT31voPn2/MiRSI4Vtx81rk2OUEEFMIGM9tfLgcZ4mYDszPbR3fj4yKhPz b23nOB4kG2NaMIYTOknFkWRrbpejG3vRyx5yUdU6uhL/Q2UuuEt/OEKtNrKEig/1Z1fJ DW9H5ErSwUxLMhch5qy9UoII7wpzuPYAeEn2LCu3scWO8MujBUAyrhKSc1qJJvjLsXP8 ZOXmuOlSXuaF7ERwHXB+Ljl9npmUckvCdJl3zRTggKmOeYF03fbBGlIpaDyrRL7PHf94 gAKlREvVAemYSy1MhtCu8Pp8rSyWV+pe57HcBwXz2joi7L94gk5pg6WxGXN1cvZbpLZD 76LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=j0Qe44pR6BlYvVdptla2mrernlG4ZFic6GbFPDXzYlg=; b=TSAgpBVnBCj3pGP72JCoVIEO2ItCvvtg697ezD7qAzszTEEO8sUftUdyZQ79YMPMdt C2qXnbeEfBO6LB8XIgYZwOjxA0TF2dauPUb2ADxiiWNgvs+BqAVAHs0ggGkhwWbImNBA bNOdRUE5GNnZ8YgZtoS8MGMy+mtiOygUofRMHZ+9Sul86sJoC8/rnDbi57jutHijsa/a VOJlKDIvrRDnwCoPcZj5mZvLvcuAKtZchYpH4IzlMuLv9rZNOcavU1wub7Et5TwnT1Nh nP3JfH5MILHaLP/eRcZC5AVhq221mtjoNh4owhvyllRoFodQN+Zd8wPJOo7FE0fDoEUb VLhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si4250325eds.379.2021.03.19.05.54.06; Fri, 19 Mar 2021 05:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbhCSMw5 (ORCPT + 99 others); Fri, 19 Mar 2021 08:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbhCSMws (ORCPT ); Fri, 19 Mar 2021 08:52:48 -0400 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5300BC06174A; Fri, 19 Mar 2021 05:52:48 -0700 (PDT) Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.94) (envelope-from ) id 1lNEcN-0004yP-RN; Fri, 19 Mar 2021 13:52:43 +0100 Date: Fri, 19 Mar 2021 13:52:43 +0100 From: Phil Sutter To: Richard Guy Briggs Cc: Linux-Audit Mailing List , LKML , netfilter-devel@vger.kernel.org, Paul Moore , Eric Paris , Steve Grubb , Florian Westphal , twoerner@redhat.com, tgraf@infradead.org, dan.carpenter@oracle.com, Jones Desougi Subject: Re: [PATCH] audit: log nftables configuration change events once per table Message-ID: <20210319125243.GU5298@orbyte.nwl.cc> Mail-Followup-To: Phil Sutter , Richard Guy Briggs , Linux-Audit Mailing List , LKML , netfilter-devel@vger.kernel.org, Paul Moore , Eric Paris , Steve Grubb , Florian Westphal , twoerner@redhat.com, tgraf@infradead.org, dan.carpenter@oracle.com, Jones Desougi References: <7e73ce4aa84b2e46e650b5727ee7a8244ec4a0ac.1616078123.git.rgb@redhat.com> <20210318163032.GS5298@orbyte.nwl.cc> <20210318183703.GL3141668@madcap2.tricolour.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318183703.GL3141668@madcap2.tricolour.ca> Sender: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 02:37:03PM -0400, Richard Guy Briggs wrote: > On 2021-03-18 17:30, Phil Sutter wrote: [...] > > Why did you leave the object-related logs in place? They should reappear > > at commit time just like chains and sets for instance, no? > > There are other paths that can trigger these messages that don't go > through nf_tables_commit() that affect the configuration data. The > counters are considered config data for auditing purposes and the act of > resetting them is audittable. And the only time we want to emit a > record is when they are being reset. Oh, I see. I wasn't aware 'nft reset' bypasses the transaction logic, thanks for clarifying! Cheers, Phil