Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1370559pxf; Fri, 19 Mar 2021 05:59:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww3Sskz4t54uAzktw7QSJDS9d/HkqVfaf5jRCc/sn9ptaf1Fjzm0gJ4rz7iaRW1CKEQDLE X-Received: by 2002:a05:6402:3115:: with SMTP id dc21mr9435710edb.173.1616158783181; Fri, 19 Mar 2021 05:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616158783; cv=none; d=google.com; s=arc-20160816; b=OKSq6Ks7JrEpKMNfOx6ODqcSMN8XiR4WL7BRA80lDyW1wv3CzCY/PkYAfeVmS2U5zF zisvW6evAUnyLCvnKhUS5oSnCxQ9PP88jnc+j3BQhQ5qOUu4ywt2rbWp9PHAGOu4765/ s9kKxIsdJ5666DhA6dIeUn2ieSjlMPtyxn90xMfJ80qEhh1YgqAbVHblyQRkUiQbGMYD Mnnls6pMJjr0P/ltUyl3dnOLWT9aEs/IWuVoU0e5EmojWBTjd/NRnNmglY8Jp47EjWE7 jb68w0nZVxVB4slwVbsjaFMNf9eYl18DTcD7QzL6LcjQxhwG+NcQyzEqfpT2GyQppUAL 7MqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=AvDFQrBAbe8H5yunB45IdDhjKgC5KZgLyWB2+9tLEDs=; b=ffONBoytoL2Ord1fYd2nDmq3m5uRr38I5fyOU+2h7R5yGgVTYrI82i7ZPEKA1HsFcQ nsW/Jac4260fQIpD1rc3fFLJ9We2N4EUIcgjKM3H8gKumNJuVoOV59roJk6zPsFdg5jd gUr1AI6t0psO9T2KnL/BxZim5SG9LQ6PqGgjNScq/tVs4EppuqCUDebtP6nnR3rcJeVH 8ZJarjG7nd6DrB0SQQcX2goxguVo18fL3YaJWIRF81w40yNp4esQ4Ebu+aixFR1l8ICq +qMscxYyf5cCbO9boJ9cDcaRS0LwNCBA6FFLORN0dbwvG4bcU8w0lkoXy7dQRKJl0jKR UjrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XAOoZAZI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si4288335edr.434.2021.03.19.05.59.20; Fri, 19 Mar 2021 05:59:43 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XAOoZAZI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230008AbhCSM6X (ORCPT + 99 others); Fri, 19 Mar 2021 08:58:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32150 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhCSM57 (ORCPT ); Fri, 19 Mar 2021 08:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616158678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AvDFQrBAbe8H5yunB45IdDhjKgC5KZgLyWB2+9tLEDs=; b=XAOoZAZIQlPzrg2voNyUZQQwTqACMvOJTz3P+2zLpogPbXWwgsn1DZPoqBoxdi0kVcWvB+ M6eNwZ7IIOtQ6yklD8L/7VDCMe5w8UhV5SFrxmfsUl8vL8r922iFEf7o4wI8YRHkzI8VFQ tNeg8CvViAN2Doae1zjpMWzR+hkYwQ4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-13-10XZudypN1ekSEFbUy3ynQ-1; Fri, 19 Mar 2021 08:57:56 -0400 X-MC-Unique: 10XZudypN1ekSEFbUy3ynQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 79A32180FCA0; Fri, 19 Mar 2021 12:57:54 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.10.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 736B919CB1; Fri, 19 Mar 2021 12:57:45 +0000 (UTC) Date: Fri, 19 Mar 2021 08:57:42 -0400 From: Richard Guy Briggs To: Phil Sutter , 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: <20210319125742.GM3141668@madcap2.tricolour.ca> References: <7e73ce4aa84b2e46e650b5727ee7a8244ec4a0ac.1616078123.git.rgb@redhat.com> <20210318163032.GS5298@orbyte.nwl.cc> <20210318183703.GL3141668@madcap2.tricolour.ca> <20210319125243.GU5298@orbyte.nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210319125243.GU5298@orbyte.nwl.cc> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-19 13:52, Phil Sutter wrote: > 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! That's my current understanding. If someone else has a better understanding I'd be grateful if they could correct me. > Cheers, Phil - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635