-a task,always audits everything
I added the following to audit.rules in RHEL4 U4 x86_64:
-a task,always
I expected this to have a similar effect to auditing the fork, vfork and clone system calls. However, it seems to either audit everything itself, or cause all the filtering to be removed from my other audit rules (which audit pretty much everything).
Is this expected behaviour, or a bug?
Thanks,
Matt
Signature · 5 lines
Red Hat, Global Professional Services M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
Quoted 6 lines · On Wednesday 21 February 2007 06:14:26 Matthew Booth wrote:
I added the following to audit.rules in RHEL4 U4
x86_64:-a task,always
I expected this to have a similar effect to auditing the fork, vfork and clone system calls.
Task auditing and syscall auditing are a little different. Task filters would most likely be used a field (-F) option. What the above is doing is marking each task auditable as its created.
Quoted 1 line
However, it seems to either audit everything itself,
As given, I think so. What happens is that with no fields, the audit_filter_rules() function in the kernel avoids the switch case and winds up in another branch which is for situations like:
auditctl -a always,exit -s open
In that case, you would want to audit any call to open. So, what happens is each task is marked auditable as its created since there are no field qualifiers to discriminate with.
Quoted 2 lines
or cause all the filtering to be removed from my other audit rules (which audit pretty much everything).
Audit is a first match wins system.
Quoted 1 line
Is this expected behaviour, or a bug?
I think this is expected.
-Steve