Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Early processes (daemons) do not report audit events
@ 2015-09-10  3:50 Kangkook Jee
  2015-09-10 20:53 ` Kangkook Jee
  0 siblings, 1 reply; 9+ messages in thread
From: Kangkook Jee @ 2015-09-10  3:50 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 1457 bytes --]

Dear all,

We are developing custom user space audit agent to gather system wide system
call trace. While experimenting with various programs, we found out that
processes (daemons) that started early (along with the system bootstrapping) do
not report any audit events at all. These processes typically fall into PID
range of less than 2000. Here’s how I reproduced the symptom with sshd daemon.

1. Reboot the system

2. Add and enable audit events
   # /sbin/auditctl -a exit,always -F arch=b64 -S clone -S close -S creat -S dup
          -S dup2 -S dup3 -S execve -S exit -S exit_group -S fork -S open -S openat 
          -S unlink -S unlinkat -S vfork -S 288 -S accept -S bind -S connect 
          -S listen -S socket -S socketpair
   # /sbin/auditctl -e1 -b 102400

3. Connect to the system via ssh
    Audit messages generated only from child processes and none are seen from
    the original daemon.

4. Restart sshd 
    # restart ssh

5. Connect again to the system via ssh
   Now, we see audit messages from both parent and child processes.

I did the experiment from Ubuntu 14.04.2 LTS distribution (64-bit, kernel
version 3.13.0-58-generic).

I first wonder whether this is intended behavior of audit framework or
not. If it is intended, I also want to know how can we configure auditd
differently to capture system calls from all processes. 

Thanks a lot for your help in advance!

Regards, Kangkook


[-- Attachment #1.2: Type: text/html, Size: 2650 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2015-09-16 13:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10  3:50 Early processes (daemons) do not report audit events Kangkook Jee
2015-09-10 20:53 ` Kangkook Jee
2015-09-11  9:50   ` Richard Guy Briggs
2015-09-11 11:03     ` Kangkook Jee
2015-09-11 11:45     ` Kangkook Jee
2015-09-11 16:24       ` Richard Guy Briggs
2015-09-11 20:17         ` Kangkook Jee
2015-09-13 15:58           ` Richard Guy Briggs
2015-09-16 13:08             ` Kangkook Jee

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