You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we got an event that a path was created and we invoke the addRecursive to essentially walk the new file and if it is a dir also walk its contents.
However, there is a scenario here that we may end up losing events; So the path is the dir and there is a tiny time window where if a child file get's created right after the internal dir contents snapshot of filepath.Walk and before we add the path to the fsnotify watcher, this file is now off the radar.
So if my analysis is correct the following can happen in audibeat file_integrity module with fsnotify backend with recursive mode enabled.
The code of interest is here.
So we got an event that a path was created and we invoke the addRecursive to essentially walk the new file and if it is a dir also walk its contents.
However, there is a scenario here that we may end up losing events; So the path is the dir and there is a tiny time window where if a child file get's created right after the internal dir contents snapshot of
filepath.Walk
and before we add the path to the fsnotify watcher, this file is now off the radar.@andrewkroh does the above make sense to you?
cc @dliappis
For confirmed bugs, please report:
The text was updated successfully, but these errors were encountered: