开发者

linux inotify - determine users for the triggered events

开发者 https://www.devze.com 2023-01-03 02:28 出处:网络
I 开发者_Go百科am trying to figure out how to determine the user which triggered a specific event when monitoring some files with inotify. Is that even possible? Does the inotify_event structure has s

I 开发者_Go百科am trying to figure out how to determine the user which triggered a specific event when monitoring some files with inotify. Is that even possible? Does the inotify_event structure has something like this?


inotify_event doesn't have a field for that. Since inotify is asynchronous you can't catch the user in the act either.

Have you considered a fuse filesystem? I think LoggedFS (GPL2+) fits the bill.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号