Re: [PATCH] fs: don't block write during exec on pre-content watched files

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

 



On Wed, Dec 04, 2024 at 11:56:39AM +0100, Christian Brauner wrote:
> Only one question: The FMODE_FSNOTIFY_HSM(exe_file->f_mode) cannot
> change once it's set, right?
> 
> The reason I'm asking is that we don't want to end up in a scenario
> where we didn't block writecount in exe_file_deny_write_access() but
> then unblock someone else's writecount in exe_file_allow_write_access().
> 

What's what I brought up, turns out its fine and the code will get a
comment to that extent.

see https://lore.kernel.org/linux-fsdevel/CAGudoHGzfjpukQ1QbuH=0Fot2vAWyrez-aVdO5Fum+330v-hmA@xxxxxxxxxxxxxx/




[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