What process was responsible for the event designated inotify?

I use pyinotifyto detect access, changes, etc. to files in this directory. Is there an easier way to find out which process is responsible for this - without patchinotify ?

+3
source share
2 answers

No, you cannot, this information is not in the struct inotify_eventone sent by the kernel.

In fact, there is no guarantee that the responsible process is still running when you receive the event.

+1
source

, Linux (pyinotify ), SELinux ( , ), ///etc.

+1

Source: https://habr.com/ru/post/1709316/


All Articles