简体   繁体   English

检测Linux中的文件打开

[英]Detecting file opening in Linux

I'm writing a daemon, monitoring user activity on Linux. 我正在编写一个守护进程,监视Linux上的用户活动。 Is there any way to detect opening arbitrary file by arbitrary process? 有没有办法通过任意进程检测打开任意文件? Preferred language is Python/C/C++ 首选语言是Python / C / C ++

Linux has group of inotify system calls . Linux有一组inotify系统调用

There is a Python wrapper for these called pyinotify . 这些名为pyinotify的Python包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM