public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] Don't crash on unknown S_IFMT file modes
@ 2009-03-26 12:06 Miloslav Trmac
  2009-03-26 12:41 ` LC Bruzenak
  2009-04-06 14:34 ` Steve Grubb
  0 siblings, 2 replies; 7+ messages in thread
From: Miloslav Trmac @ 2009-03-26 12:06 UTC (permalink / raw)
  To: Steve Grubb; +Cc: linux-audit

Hello,
ausearch -i and libauparse currently crash (access NULL) if a mode= field contains an unknown file type.  Such records are generated by the kernel for IPC, e.g.

    node=jcdx156 type=IPC msg=audit(1237915952.720:2294): ouid=500 ogid=1106 mode=0600 obj=siterep_u:siterep_r:siterep_t:s0-s15:c0.c1023

The attached patch:
* Modifies ausearch and libauparse to output the file format in octal if it is unknown.
* Modifies libauparse to use the same interpreted field format as ausearch (without a space in the middle).
* Modifies comma handling in libauparse to avoid a strcat() call.

    Mirek

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

end of thread, other threads:[~2009-04-06 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <244499589.2433711238079841056.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2009-03-26 15:05 ` [PATCH] Don't crash on unknown S_IFMT file modes Miloslav Trmac
2009-03-27 15:44   ` LC Bruzenak
2009-03-27 15:55     ` Miloslav Trmac
2009-03-27 15:56     ` LC Bruzenak
2009-03-26 12:06 Miloslav Trmac
2009-03-26 12:41 ` LC Bruzenak
2009-04-06 14:34 ` Steve Grubb

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