[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210218132843.GP3141668@madcap2.tricolour.ca>
Date: Thu, 18 Feb 2021 08:28:43 -0500
From: Richard Guy Briggs <rgb@...hat.com>
To: Florian Westphal <fw@...len.de>
Cc: Phil Sutter <phil@....cc>, LKML <linux-kernel@...r.kernel.org>,
Linux-Audit Mailing List <linux-audit@...hat.com>,
netfilter-devel@...r.kernel.org, twoerner@...hat.com,
Eric Paris <eparis@...isplace.org>, tgraf@...radead.org
Subject: Re: [PATCH ghak124 v3] audit: log nftables configuration change
events
On 2021-02-18 13:52, Florian Westphal wrote:
> Richard Guy Briggs <rgb@...hat.com> wrote:
> > On 2021-02-18 09:22, Florian Westphal wrote:
> > > No. There is a hierarchy, e.g. you can't add a chain without first
> > > adding a table, BUT in case the table was already created by an earlier
> > > transaction it can also be stand-alone.
> >
> > Ok, so there could be a stand-alone chain mod with one table, then a
> > table add of a different one with a "higher ranking" op...
>
> Yes, that can happen.
Ok, can I get one more clarification on this "hierarchy"? Is it roughly
in the order they appear in nf_tables_commit() after step 3? It appears
it might be mostly already. If it isn't already, would it be reasonable
to re-order them? Would you suggest a different order?
(snip GET bits, that's now clear, thank you)
> > such that it would be desirable to filter them out
> > to reduce noise in that single log line if it is attempted to list all
> > the change ops? It almost sounds like it would be better to do one
> > audit log line for each table for each family, and possibly for each op
> > to avoid the need to change userspace. This would already be a
> > significant improvement picking the highest ranking op.
>
> I think i understand what you'd like to do. Yes, that would reduce
> the log output a lot.
Would the generation change id be useful outside the kernel? What
exactly does it look like? I don't quite understand the genmask purpose.
- RGB
--
Richard Guy Briggs <rgb@...hat.com>
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
Powered by blists - more mailing lists