![]() | |||||||||||||
Messages in this thread |
On Thu, 2006-03-09 at 00:33 +0800, Yi Yang wrote: > Current inotify implementation only focus on change of file system, but it doesn't > know who results in this change, this patch adds three fields to struct inotify_event, > tgid, uid and gid, they will save process ID, user ID and user group ID of the process > which leads to change in the file system, such software as anti-virus can make use > of this feature to monitor who is modifying a specific file. this patch appears to change the ABI! That is bad bad bad. Also, how can you guarantee that "current" is valid and meaningful at the place you use it to get the user id ?? Also the process ID part is really bogus, after all the process may have exited by the time the inotify client gets to it, and the PID may even already have been reused. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-03-08 16:55 [from the cache] ©2003-2008 | |||||||||||||