Re: [PATCH 5/7] fuse: update file mode when updating acls

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

 



On Thu, 21 Aug 2025 at 02:51, Darrick J. Wong <djwong@xxxxxxxxxx> wrote:
>
> From: Darrick J. Wong <djwong@xxxxxxxxxx>
>
> If someone sets ACLs on a file that can be expressed fully as Unix DAC
> mode bits, most filesystems will then update the mode bits and drop the
> ACL xattr to reduce inefficiency in the file access paths.  Let's do
> that too.  Note that means that we can setacl and end up with no ACL
> xattrs, so we also need to tolerate ENODATA returns from
> fuse_removexattr.

This goes against the model of leaving this sort of task to the
server.  I understand your desire to do it in the kernel, since that
simplifies your server.   But fuse is often used in passthrough mode,
where this will be done by the kernel, just one layer down the stack.
In that case splitting a setxattr into a removexattr + chmod makes
little sense.

Maybe extend the meaning of fc->default_permissions to mean: userspace
doesn't want to deal with any mode related stuff.   Thoughts?

Thanks,
Miklos




[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