Re: Fanotify events on the same file path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 4, 2022 at 4:26 PM Gal Rosen <gal.rosen@xxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> I am using a single reader thread from an Fanotify file descriptor.
> The reader thread pushes file events into a queue.
> There are multiple worker threads which pop from the queue and do some actions on the file path (like file scanning for viruses).
> We have been told by the third party we are working with for the scanning API that we are scanning the same file path in parallel with 2 different objects.
> Is it possible to get multiple events on the same file path before response on the first event ?
>

Yes, there is nothing preventing that.
Multiple threads opening the same file will result in multiple
FAN_OPEN_PERM events, each with a different event->pid.

Thanks,
Amir.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux