<br><font size=2 face="sans-serif">(sorry for the html)</font>
<br>
<br><tt><font size=2>linux-audit-bounces@redhat.com wrote on 11/08/2007
05:26:00 PM:<br>
<br>
> env: audit 1.6.2, s390x, RHEL5 in targeted policy, permissive mode<br>
> <br>
> I'm trying to assign the field name + interpreted value to a variable<br>
> inside my dispatcher plugin. something along these lines:<br>
</font></tt>
<br><font size=2 face="sans-serif">Trying to debug this problem, I saw
that it's happening because the record 'machine' field in the auparse internal
structure is set to '-1':</font>
<br><font size=2 face="sans-serif">(gdb) p *r</font>
<br><font size=2 face="sans-serif">$17 = {</font>
<br><font size=2 face="sans-serif">  record = 0x80041510 "node=kwuser3.edincott.ibm
type=SYSCALL msg=audit(1194628042.317:58358): arch=80000016 syscall=5 success=yes
exit=3 a0=800ed250 a1=241 a2=1b6 a3=0 items=1 ppid=14670 pid=14672 auid=0
uid=0 gid=0 euid=0"..., type = 0, machine = -1, syscall = -1, a0 =
0, a1 = 0, nv = {head = 0x80039dd0, cur = 0x8002ad10, </font>
<br><font size=2 face="sans-serif">    cnt = 27}, item = 0, list_idx
= 0, line_number = 19, next = 0x0}</font>
<br>
<br><font size=2 face="sans-serif">Any chance this might be happening because
I don't have the complete event (ie.: the CWD and PATH records are missing
in the event) - In this case, this would be caused by the record loss in
audispd reported in another thread...</font>
<br>
<br><font size=2 face="sans-serif"> Klaus</font>
<br>
<br><font size=2 face="sans-serif">-- <br>
Klaus Heinrich Kiwi/Brazil/IBM <klausk@br.ibm.com><br>
Software Engineer<br>
IBM STG, Linux Technology Center<br>
Phone:(+55-19) 2132-1909 [T/L 839-1909]</font>
<br>