Linux file open detection

I am writing a daemon controlling user activity on Linux. Is there any way to detect the opening of an arbitrary file by an arbitrary process? The preferred language is Python / C / C ++.

+3
source share
1 answer

Linux has a group of inotifysystem calls .

There is a Python shell for named pyinotify .

+1
source

All Articles