[PATCH] LOG target - log GID
yasuyuki.kozakai at toshiba.co.jp
Fri Jul 13 12:30:35 CEST 2007
From: Jan Engelhardt <jengelh at computergmbh.de>
Date: Fri, 13 Jul 2007 11:59:21 +0200 (CEST)
> On Jul 12 2007 18:03, Yasuyuki KOZAKAI wrote:
> >> Hi,
> >> While I was browsing through the files in my home directory I stumbled
> >> upon my patch from
> >> May 2003 that adds to the LOG target an option to log UID and GID.
> >> I noticed that someone already has done that in the past 4 years ;-)
> >> However currently LOG only logs UID. My patch used to log GID too, so
> >> what do you say about applying the patches attached.
> >We cannot change format of LOG target because that breaks programs parsing logs.
> Hm, then it's time to write a specification on how to correctly parse things
> (namely, splitting at whitespace and parsing the ^\S+= component of it rather
> than assuming things were in a fixed order)
Unfortunately, there is no way for us to know every program to do that. So
what we can do is to keep current format including the number of objects
and white spaces, order of things, and so on.
> >But it might be possible by introducing new option like '--log-gid'.
-- Yasuyuki Kozakai
More information about the netfilter-devel