Skip to contentSkip to conversation

A kind of file monitor

DISCUSSION Prateek Donni 2 participants 2 messages Jan 13, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hey guys , i needed some help on building a file monitor which monitors alll file accesses and manages historical data of the same, kindly tell if 'inotify' can be good enough for the same

#2 lore raw
Quoted 3 lines · Prateek Donni

Hey guys , i needed some help on building a file monitor which monitors alll file accesses and manages historical data of the same, kindly tell if 'inotify' can be good enough for the same

You may or may not be better served looking at the audit subsystem, but it's unclear what you need. Some things you have to consider:

1) Do you want all reads/writes, or is open/close/mmap sufficient?
2) What latency do you need? Does the monitor need to deal with it in real time (the same second or so), or is "auditd writes to a logfile and we read it from a cron job" good enough?
3) What are the penalties/failure modes if you fail to capture an access event?