Re: [RFC PATCH 2/5] ubifs: Initialize or update ACLs for inode

From: Zhihao Cheng
Date: Fri Mar 22 2024 - 08:07:18 EST


在 2024/3/22 19:57, Li Zetao 写道:
Hi,

On 2024/3/21 11:47, Zhihao Cheng wrote:
在 2024/3/20 0:16, Li Zetao 写道:
There are two scenarios where ACL needs to be updated, the first one
is when creating the inode, and the second one is in the chmod process.
When creating directories/files/device node/tmpfile, ACLs needs to be
initialized, but symlink do not.Why not support symlink? It looks like many filesystems(eg. ext4, f2fs,
btrfs) support it, except xfs.
Thanks for the reviews, but this is inconsistent with my understanding.
I think most file systems in Linux do not support it, because most file systems do not register the get/set functions of ACLs for symlink operations. And the posix_acl_create() will determine that it is a symlink type inode, and then skip the creation process. But except for bcachefs, it may be to solve the problem of certain scenarios, so it would be nice if anyone could explain it to us.

You are right, only bcachefs support acl for symlink.