S
S
sallyruthstruik2014-02-26 15:25:53
linux
sallyruthstruik, 2014-02-26 15:25:53

How to implement file open interception in Linux?

How can I intercept the file open event in Linux? For example, it is necessary to monitor all files that the user opens and write to the log. How can this be done (preferably in Python)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2014-02-26
@inkvizitor68sl

habrahabr.ru/post/66569 to help you.

V
v_prom, 2014-02-26
@v_prom

I just know that you can see this: os.path.getatime(path) - the last time the file was accessed, in seconds.
And there is also this article about logging: www.xakep.ru/post/54897

J
jcmvbkbc, 2014-02-26
@jcmvbkbc

https://wiki.archlinux.org/index.php/Audit_framewo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question