audit rule question

LC Bruzenak lenny at magitekltd.com
Wed May 7 18:07:39 UTC 2008


> I am a little surprised that the "-a always,exit" doesn't cause an
> error. I wonder if it works correctly - maybe auditctl code is smart
> enough to overcome syntactic dyslexia? :)
> 
given rules:
-a always,exit -F arch=b32 -S adjtimex -S settimeofday -k time-change
-a exit,always -F arch=b64 -S adjtimex -S settimeofday -k time-change

[root at hugo ~]# auditctl -l | grep timex
LIST_RULES: exit,always arch=1073741827 (0x40000003) key=time-change
syscall=settimeofday,adjtimex
LIST_RULES: exit,always arch=3221225534 (0xc000003e) key=time-change
syscall=adjtimex,settimeofday

So it seems the auditctl code is able to get the intent right regardless
of the order.

LCB.

-- 
LC (Lenny) Bruzenak
lenny at magitekltd.com




More information about the Linux-audit mailing list