All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Quoted argument not listed
Date: Thu, 19 Aug 2010 08:37:29 -0400	[thread overview]
Message-ID: <201008190837.29569.sgrubb@redhat.com> (raw)
In-Reply-To: <AANLkTikr5AdMwwy2qJjwLu39wN4jm+Bv0kY3E0BL=OHB@mail.gmail.com>

On Thursday, August 19, 2010 06:54:23 am Jure Simsic wrote:
> type=EXECVE msg=audit(1282117611.037:27469599): argv[0]="cmd" argv[1]="-a"
> argv[2]="foo" argv[3]="-b" argv[4]="-c" argv[5]="-query"
> argv[6]=737472626567696E73287468726561645F69642C227468726561645F69643D32333
> 639383932662229
> 
> The argv[6] is even sometimes like 'arg,"id=123"' , I guess that doesn't
> make much difference..
> 
> Is there any way to catch the quoted argument as it is and not as an
> interesting longstring?

No. Its like this for a reason. The space is the field delimiter. Also the 
quote character has special meaning. So, if the text has one of these in it, 
it must be encoded so that it won't fool the parsers. All audit tools, 
libraries, know how to handle the encoding. Your string is this:

type=EXECVE msg=audit(08/18/2010 03:46:51.037:27469599) : argv[0]=cmd 
argv[1]=-a argv[2]=foo argv[3]=-b argv[4]=-c argv[5]=-query 
argv[6]=strbegins(thread_id,"thread_id=2369892f") 

Its there, you just need to access it via interpretation.

-Steve

      reply	other threads:[~2010-08-19 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 10:54 Quoted argument not listed Jure Simsic
2010-08-19 12:37 ` Steve Grubb [this message]

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=201008190837.29569.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@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 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.