Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a client who wants us to lock down the Mac laptops we're using to access his data. He wants an audit of all files read and written from removable media (USB, FireWire, optical). I have a sister question re: finding a commercial app for this, but I'm starting to feel like the only fun^H^H^H suitable solution will be DIY.

Does Cocoa have an API to audit the bus/device, any identifiers (S/N, vendorID,, the filesystem metadata (stat()) and blocks in/out, etc.? Does dtrace do this!?

I could reinstall every laptop with ZFS and mirror any external device via copy-on-write...

share|improve this question

You might also take a look at the FSEvents API, although I think this only tracks writes, not reads.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.