Evgeny Vyalyy
Evgeny Vyalyy

Reputation: 33

Detecting file opening in Linux

I'm writing a daemon, monitoring user activity on Linux. Is there any way to detect opening arbitrary file by arbitrary process? Preferred language is Python/C/C++

Upvotes: 3

Views: 95

Answers (1)

vartec
vartec

Reputation: 134631

Linux has group of inotify system calls.

There is a Python wrapper for these called pyinotify.

Upvotes: 1

Related Questions