public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* How to track process invocation history using audit
@ 2011-06-20 15:51 Kohei KaiGai
  2011-06-20 16:04 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Kohei KaiGai @ 2011-06-20 15:51 UTC (permalink / raw)
  To: Linux-audit

Hi,

I tried to track what process launches what other programs using audit
mechanism.
Then, I want to write up a tree diagram using audit logs eventually.

However, the auditctl does not work as I expected.

I tried to track all the fork(2) system call to record relationship
between ppid and pid
on processes with a particular loginuid.

  [root@ls3029v0 ~]# auditctl -a task,always -F arch=b64 -S fork -F auid=1234
  Error: syscall auditing being added to task list

But, it does not works.
I also tried to use 'exit' list, but it seems to me the following rule
is ignored.
(tail -f /var/log/audit/audit.log does not report anything)

  [root@ls3029v0 ~]# auditctl -a exit,always -F arch=b64 -S fork

What is the best way to track process invocation history using audit mechanism?

Thanks,
-- 
KaiGai Kohei <kaigai@kaigai.gr.jp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to track process invocation history using audit
  2011-06-20 15:51 How to track process invocation history using audit Kohei KaiGai
@ 2011-06-20 16:04 ` Steve Grubb
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2011-06-20 16:04 UTC (permalink / raw)
  To: linux-audit

On Monday, June 20, 2011 11:51:10 AM Kohei KaiGai wrote:
> I tried to track all the fork(2) system call to record relationship
> between ppid and pid
> on processes with a particular loginuid.
> 
>   [root@ls3029v0 ~]# auditctl -a task,always -F arch=b64 -S fork -F
> auid=1234 Error: syscall auditing being added to task list

Maybe you need to use the clone syscall? You can probably strace a program just to 
make sure what its using.

-Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-20 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 15:51 How to track process invocation history using audit Kohei KaiGai
2011-06-20 16:04 ` Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox