http://groups.google.com/group/linux.kernel/browse_thread/thread/3e45bbe4ae4fce5b/d745471e60cd7656?hl=en&#d745471e60cd7656
在这里 Robert Love 说明了为什么不提供 user 和 process 信息的原因:
引用
Hi, Chris.
> On a newsgroup someone was using inotify, but was asking if there was
> any way to also determine which process/user had caused the notification.
> Is this something that would make sense (as an optional bit of
> information) in inotify?
It is definitely something that could be added, technically speaking.
I have been hesitant, though. I do not want feature creep to be a
deterrent to acceptance into the Linux kernel. I also think that there
could be arguments about security. Sending the event is one thing,
telling which pid (and thus what user, etc.) caused the event is
another. For example, we can make the argument that read rights on a
file are tantamount to the right to receive a read event. But can we
say that read rights are enough for a unprivileged user to know that
root at pid 820 is writing the file? I don't know.
I'd add it if there were consensus. I don't know that it makes sense,
though.
Robert Love
分享到:
相关推荐
linux inotify原理: Inotify是一种文件系统变化通知的机制,文件或者文件夹的增删等这些事件都可以即刻反映在用户空间。
inotify 1/4 http://www.boobooke.com/v/bbk4196 inotify 2/4 http://www.boobooke.com/v/bbk4197 inotify 3/4 http://www.boobooke.com/v/bbk4198 inotify 4/4 http://www.boobooke.com/v/bbk4199
Inotify是一种强大的、细粒度的、异步的文件系统事件监控机制, linux内核从 2.6.13起,加入了Inotify支持,通过Inotify可以监控文件系统中添加、删除,修改、移动等各种事件,利用这个内核接口,第三方软件就可以...
linux rsync及inotify实时同步,实现并确保文件及实时同步
NULL 博文链接:https://sharejava.iteye.com/blog/1776333
NULL 博文链接:https://dutianzhao.iteye.com/blog/2162220
python-inotify linux inotify的python绑定许可证:麻省理工学院演示 #! /usr/bin/env python"""backup your file automatically. """import osimport timeimport shutilimport sysimport errno import os . pathtry...
Inotify 是一个 Linux特性,它监控文件系统操作,比如读取、写入和创建。这篇文章给大家介绍了Linux inotify监听文件状态的相关知识,需要的朋友参考下吧
这是监视文件夹变化的程序,指定监视的文件夹类型
主要介绍了Linux inotify实时备份实现方法详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
Inotify是一种强大的、细粒度的、异步的文件系统事件监控机制, linux内核从 2.6.13起,加入了Inotify支持,通过Inotify可以监控文件系统中添加、删除,修改、移动等各种事件,利用这个内核接口,第三方软件就可以...
rsync+inotify实现服务器之间文件实时+双向同步,里面有完整的操作步骤、linux命令以及注意事项
linux下监控文件夹内变化,c怨言编写,在linux下用gcc编译,用Inotify机制实现监控文件夹变化,由于是linux课的大作业,所以有相关文档,文字说明,便于学习。
linux 文件监视事件 inotify, inotify 是一个 Linux 内核特性,它监控文件系统,并且及时向专门的应用程序发出相关的事件警告,比如删除、读、写和卸载操作等。
inotify 用法详解 希望帮的到大家
inotify-tools-3.14源码包,由于使用yum安装inotify-tools时找不到资源,所以提供了inotify-tools源码包,通过编译的形式进行安装
实时/触发实时同步---inotify+rsync所要用到的inotify-tools软件包
linux下的inotify实时监控程序,配合rsync实现实时同步
inotify,epoll
文件源代码:USB_AT08-》usb-ini》usb-test.c autorun.ini的格式可参考提供的 功能:1、对APP升级(文件转移) 2、对系统与模块升级(文件转移) 3、对图片与图像的导出(文件在U盘内) 4、CAN、UART的的导入...