[PATCH] Fix acct quoting in audit_log_acct_message())

Steve Grubb sgrubb at redhat.com
Wed Mar 5 15:29:10 UTC 2008


On Wednesday 05 March 2008 10:21:29 Tomas Mraz wrote:
> > Lets not invent YAES (Yet Another Encoding System). The world already
> > has enough :-) There is value in sticking with known encodings, many
> > programmers are instantly familiar with them and there is a raft of
> > working code to support them. Off the top of my head I can think of:
> >
> > 1) backslash escapes with embedded octals
> > 2) quoted printable
> > 3) base64
> > 4) xml entities
>
> 5) url encoding - which is what I proposed and is most efficient and
> readable (well it is equivalent to quoted printable except it uses %
> instead of = which we cannot use as it has already a meaning as name
> value separator)

And if base64 is being suggested, why not:

6) ASCII encoded hex. Its compact, saves diskspace, easily encodes any utf-8 
or ASCII string including punctuation and whitespace.

-Steve




More information about the Linux-audit mailing list