Looking for a file monitor
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
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
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 :)