linux inotify - 确定触发事件的用户

发布于 2024-09-05 23:34:40 字数 75 浏览 1 评论 0原文

我试图弄清楚如何确定在使用 inotify 监视某些文件时触发特定事件的用户。这可能吗? inotify_event结构有类似的东西吗?

I 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丿*梦醉红颜 2024-09-12 23:34:40

inotify_event 没有相应的字段。由于 inotify 是异步的,因此您也无法捕获用户的行为。

您考虑过使用保险丝文件系统吗?我认为 LoggedFS (GPL2+) 符合要求。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文