On Sun 06-04-14 02:01:08, xypron.glpk@xxxxxx wrote: > There needs to be some explanation of the events that are generated > for directories. To begin with, *which* events are generated for > directories? > > * opening a directory for reading gives FAN_OPEN > * closing the file descriptor from the previous > step gives FAN_CLOSE > * Changing the directory contents (adding a file) > seems to give no event for the directory itself > (but will give an event on the new file, if we > are monitoring children of the directory) > * Other??? That's correct. fanotify doesn't give you any other events for directories. It's really only useful for watching files and their contents. > FAN_ACCESS_PERM > The name is misleading. The permission check is done before executing a file > or listing a directory. AFAIK it doesn't happen before listing a directory. But if you are convinced it does, I can check more carefully ;) Honza -- Jan Kara <jack@xxxxxxx> SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html