public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: retrieve EIP/RIP for syscall in audit
Date: Fri, 13 Jul 2012 13:27:06 -0400	[thread overview]
Message-ID: <1491986.ZcUTPKqv5T@x2> (raw)
In-Reply-To: <CAMU3N_J+26jjZ9N0zf-JKEMLnVgaRwfDjd0Ck3JOO+P1Q3mRsA@mail.gmail.com>

On Thursday, July 12, 2012 03:04:11 PM Xiaokui Shu wrote:
> Hello,
> 
> I have a question about one of the features of audit.
> Can I use audit to log the EIP/RIP at time of syscall? There is a "-i"
> flag in strace that does the work.

No. The audit system does not collect that information. Maybe trace points or 
systemtap would be a better approach for that kind of thing?

-Steve

> When I compare the mechanisms of audit and strace(ptrace), I find
> maybe it is not possible for strace to do so. Audit is on the kernel
> side of a syscall, and does not know the audited program's internal
> information (I am not sure if I understand it right). However, one can
> still fetch extra information out of the syscall event (e.g. block a
> syscall when coming, check the audited program stack and clear
> blocking), but it may bring much overhead.
> 
> Best,
> Xiaokui
> 
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  parent reply	other threads:[~2012-07-13 17:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 19:04 retrieve EIP/RIP for syscall in audit Xiaokui Shu
2012-07-12 19:06 ` Xiaokui Shu
2012-07-13 17:27 ` Steve Grubb [this message]
2012-07-13 17:39   ` Xiaokui Shu

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=1491986.ZcUTPKqv5T@x2 \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox