Skip to contentSkip to conversation

file watch and stat

DISCUSSION Michael C Thompson 2 participants 4 messages Oct 2, 2006 – Oct 3, 2006

lore
Share & tools
lore
#0 lore raw

Hey all,

I'm trying to figure out why having a watch a on file is not generating a record when I stat said file.

Put a watch on a file, and do stat file.

No record... I'm not sure why this is happening, isn't getting such information considered security relevant?

Mike

#1 lore raw

Michael C Thompson wrote: [Mon Oct 02 2006, 03:16:19PM EDT]

Quoted 9 lines

Hey all,

I'm trying to figure out why having a watch a on file is not generating a record when I stat said file.

Put a watch on a file, and do stat file.

No record... I'm not sure why this is happening, isn't getting such information considered security relevant?

What is your audit rule?

#2 lore raw
Quoted 10 lines · Amy Griffis

Michael C Thompson wrote: [Mon Oct 02 2006, 03:16:19PM EDT]

Quoted 7 lines

Hey all,

I'm trying to figure out why having a watch a on file is not generating a record when I stat said file.

Put a watch on a file, and do stat file.

No record... I'm not sure why this is happening, isn't getting such information considered security relevant?

What is your audit rule?

auditctl -w /path/to/file

Mike

#3 lore raw

Michael C Thompson wrote: [Mon Oct 02 2006, 05:22:17PM EDT]

Quoted 7 lines
Quoted 6 lines · Amy Griffis

Michael C Thompson wrote: [Mon Oct 02 2006, 03:16:19PM EDT]

Quoted 5 lines

Hey all,

I'm trying to figure out why having a watch a on file is not generating a record when I stat said file.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Put a watch on a file, and do stat file.

No record... I'm not sure why this is happening, isn't getting such information considered security relevant?

What is your audit rule?

auditctl -w /path/to/file

You aren't seeing a record because stat is not included in any of the syscall classes. I believe it was omitted because it has a tendency to fill up audit logs.

You can audit this event by specifying the syscall directly, e.g.

auditctl -a exit,always -S stat -F path=/path/to/file

Regards,
Amy