Skip to contentSkip to conversation

Looking for a file monitor

DISCUSSION Chuck Ebbert 3 participants 3 messages Feb 25, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 7 lines · Hareesh Nagarajan

But if we want to keep a track of all the files that are opened, read, written or deleted (much like filemon; ``Filemon's timestamping feature will show you precisely when every open, read, write or delete, happens, and its status column tells you the outcome."), we can write a simple patch that makes a note of these events on the VFS layer, and then we could export this information to userspace, via relayfs. It wouldn't be too hard to code a relatively efficient implementation.

Doesn't auditing do all this?

I have Fedora Core 4 installed and it comes with the 'audit' RPM.

Signature · 2 lines
Chuck
"Equations are the Devil's sentences."  --Stephen Colbert
#1 lore raw
Quoted 7 lines · Chuck Ebbert

In-Reply-To: <[email protected]>

Quoted 1 line · Hareesh Nagarajan

But if we want to keep a track of all the files that are opened, read, written or deleted (much like filemon; ``Filemon's timestamping feature will show you precisely when every open, read, write or delete, happens, and its status column tells you the outcome."), we can write a simple patch that makes a note of these events on the VFS layer, and then we could export this information to userspace, via relayfs. It wouldn't be too hard to code a relatively efficient implementation.

Doesn't auditing do all this?

I have no idea about auditing, but I would guess it internally uses inotify.

Hareesh

#2 lore raw
Quoted 13 lines · Hareesh Nagarajan
Quoted 12 lines · Chuck Ebbert

In-Reply-To: <[email protected]>

Quoted 7 lines · Hareesh Nagarajan

But if we want to keep a track of all the files that are opened, read, written or deleted (much like filemon; ``Filemon's timestamping feature will show you precisely when every open, read, write or delete, happens, and its status column tells you the outcome."), we can write a simple patch that makes a note of these events on the VFS layer, and then we could export this information to userspace, via relayfs. It wouldn't be too hard to code a relatively efficient implementation.

Quoted 3 lines
Quoted 1 line

Doesn't auditing do all this?

I have no idea about auditing, but I would guess it internally uses inotify.

it doesn't; it uses the audit framework which, by the way, exactly does what the proposed patch above would do :)