public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Matthew Booth <mbooth@redhat.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-audit@redhat.com
Subject: Re: A change to string encoding
Date: Tue, 10 Mar 2009 18:13:51 +0000	[thread overview]
Message-ID: <1236708831.3386.35.camel@localhost.localdomain> (raw)
In-Reply-To: <200903101158.38990.sgrubb@redhat.com>

On Tue, 2009-03-10 at 11:58 -0400, Steve Grubb wrote:
> On Tuesday 10 March 2009 07:07:17 am Matthew Booth wrote:
> > The problem with current string encoding is that it is parsable, but
> > non-human readable.
> 
> There are times when it has things that would never be human readable.

Do you have an exhaustive list? Off the top of my head I can think of
the record which contains a struct sockaddr.

> > URL encoding is just one way to achieve this, and has the advantage of
> > being widely implemented. 
> 
> Inside the kernel?

No, I mean the format output by the audit daemon.

> > I'm sure this has been considered before. Given that it's a road I'm
> > considering heading down, what were the reasons for not doing it?
> 
> Can you encode data structures in it? The kernel developer at the time wanted 
> something that was either already in the kernel or something that could be 
> implemented in a couple lines of code and something that works for any kind 
> of encoding that needed to be done. So, I think minimal amount of code and 
> maximum flexibility is what drove the decision.

Sounds like this falls in to the 'easy to produce' category. We also
need to consider how this data is consumed. I'll take this opportunity
to suggest again that a binary format produced by the kernel would be no
worse than a hex encoded binary format, and a whole lot easier for the
audit daemon to mangle into something usable on the output side.

Matt

  reply	other threads:[~2009-03-10 18:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 11:07 A change to string encoding Matthew Booth
2009-03-10 15:58 ` Steve Grubb
2009-03-10 18:13   ` Matthew Booth [this message]
2009-03-10 19:55   ` John Dennis
2009-03-10 16:22 ` Tomas Mraz
2009-03-10 18:51 ` Eric Paris

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=1236708831.3386.35.camel@localhost.localdomain \
    --to=mbooth@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=sgrubb@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox