All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linda Knippers <linda.knippers@hp.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: William Kelly <wkelly@rackspace.com>,
	linux-audit@redhat.com, Bret Piatt <bret.piatt@rackspace.com>
Subject: Re: get_field_str() and interpret_field() bug with multi-word fields
Date: Wed, 13 Aug 2008 14:49:12 -0400	[thread overview]
Message-ID: <48A32CA8.5060800@hp.com> (raw)
In-Reply-To: <200808131302.05804.sgrubb@redhat.com>

Steve Grubb wrote:
> On Wednesday 13 August 2008 12:25:09 Klaus Heinrich Kiwi wrote:
>> I like Mathew's idea of having a binary format though. Maybe it's
>> possible to carry the legacy format for some time while we have a more
>> robust (and extensible) binary format in parallel? And then having a
>> binary format version tag within each record?
> 
> Yes, there would have to be a migration path. I think we talked about XDR as a 
> possibility 4 years ago because its already inside the kernel. The kernel 
> guys at the time wanted to re-use something already inside or something that 
> was compact in its representation.
> 
> What I believe lead to text based was the general feeling that logs should be 
> human readable with less, tail, or vi if need be.

LAuS had a binary record format and I don't recall people complaining
about it.

> A problem with binary representations will be what happens with aggregated 
> big-endian and little-endian system logs?

Just define a standard.

> 
>> I know I know, at the time I have more questions than answers. I only
>> wanted to express my feeling that there is indeed a problem with the
>> current format.
> 
> There is a problem with any format. How would changing to binary help when we 
> realize that we forgot auid in CONFIG_CHANGE? The only thing that might help 
> is to stab a version number into each record because its size is going to 
> change. This is going to lead to much more complex code in the parser.
> 
> The current technique is flexible in that the field is either there or not but 
> it parses either way. For example, we recently added ses to syscall records. 
> The auparse library can handle it being there or not. Now and in the future. 
> The application that uses those logs may have to decide whether that's 
> important or not. I don't think that is a judgment call for a library to 
> make.
> 
> In a binary representation, you would have a version number to describe what 
> structure to cast the pointer to. If you have new log with old user space, it 
> won't parse because it won't have the template to cast with.

Is that any different from not being able to parse something the tools 
don't know about?

-- ljk
> 
> 
>> I know you and Steve tried before to talk with the SELinux guys trying
>> to have a saner format for AVCs and stuff. Do you feel that's an
>> impossible barrier to cross or maybe we try again and convince them that
>> stricter formatting rules will bring more users for their audit data?
> 
> I don't know their recent thoughts on this. USER_AVC is seriously broken and 
> unusable. I've been thinking about linking auparse to sending user space 
> events to make sure that only parsable events are sent (it would go to syslog 
> with an error so that its not lost forever). No app should consider sending 
> an event as a performance impact, so this should be doable - but not in the 
> 1.7.x seres.  :)
> 
> -Steve
> 
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  parent reply	other threads:[~2008-08-13 18:49 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12 17:49 get_field_str() and interpret_field() bug with multi-word fields Jonathan Kelly
2008-08-12 18:05 ` LC Bruzenak
2008-08-12 18:52   ` John Dennis
2008-08-12 19:02     ` LC Bruzenak
2008-08-12 18:16 ` John Dennis
2008-08-12 21:13   ` Steve Grubb
2008-08-12 22:10     ` Matthew Booth
2008-08-12 23:01       ` Eric Paris
2008-08-12 19:16 ` Steve Grubb
2008-08-12 19:58   ` John Dennis
2008-08-12 20:11     ` Eric Paris
2008-08-12 20:32       ` Steve Grubb
2008-08-12 21:09         ` John Dennis
2008-08-12 21:24           ` Steve Grubb
2008-08-12 22:37             ` John Dennis
2008-08-13  0:33         ` Klaus Heinrich Kiwi
2008-08-13 15:09           ` Eric Paris
2008-08-13 16:25             ` Klaus Heinrich Kiwi
2008-08-13 17:02               ` Steve Grubb
2008-08-13 17:30                 ` LC Bruzenak
2008-08-13 18:49                 ` Linda Knippers [this message]
2008-08-13 19:58                   ` John Dennis
2008-08-14 18:25               ` Stephen Smalley
2008-08-15 13:58                 ` Matteo Michelini
2008-08-15 14:10                   ` Steve Grubb
2008-08-15 15:27                     ` Matteo Michelini
2008-08-15 14:15                   ` Stephen Smalley
2008-08-13 16:29             ` John Dennis
2008-08-13 22:35           ` Casey Schaufler
2008-08-12 20:57       ` John Dennis
2008-08-12 21:18         ` Steve Grubb
2008-08-12 21:40           ` John Dennis
2008-08-12 21:53             ` Steve Grubb
2008-08-12 22:11               ` John Dennis
2008-08-12 22:46                 ` Steve Grubb
2008-08-12 22:59         ` Eric Paris
  -- strict thread matches above, loose matches on Subject: below --
2008-08-13 16:57 Jonathan Kelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A32CA8.5060800@hp.com \
    --to=linda.knippers@hp.com \
    --cc=bret.piatt@rackspace.com \
    --cc=linux-audit@redhat.com \
    --cc=sgrubb@redhat.com \
    --cc=wkelly@rackspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.