Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can incron be used to watch /proc directories? #71

Open
kloud1989 opened this issue Jul 2, 2020 · 2 comments
Open

Can incron be used to watch /proc directories? #71

kloud1989 opened this issue Jul 2, 2020 · 2 comments

Comments

@kloud1989
Copy link

I tried to use incron to watch a process's thread creation (watching a directory like /proc/PID/task), but it seems not working. I noticed that /proc is mounted with nosuid, so I remounted with suid, but still, it's not working. Since /proc is not a regular directory, I wonder if incron can be used to watch it?

@dandalf
Copy link

dandalf commented Jul 2, 2020

I attempted this before with no success.

@ericjunkermann
Copy link

This is NOT possible. From man 7 inotify (inotify is what incrond uses):

Inotify reports only events that a user-space program triggers
through the filesystem API. As a result, it does not catch remote
events that occur on network filesystems. (Applications must fall
back to polling the filesystem to catch such events.) Furthermore,
various pseudo-filesystems such as /proc, /sys, and /dev/pts are not
monitorable with inotify.

So this issue should probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants