[PATCH -next -v4 04/17] fs: pass struct path to POSIX ACL helpers

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 17 14:45:28 UTC 2026


> vfs_set_acl(), vfs_get_acl(), vfs_remove_acl() and the
> do_set_acl()/do_get_acl() helpers take a struct dentry even though their
> callers either hold a struct path (or a struct file).  Pass a struct path
> instead, with the idmap still as a separate first argument.
> 
> set_posix_acl() keeps taking a dentry, as it is called from
> inode_operations->set_acl.  ecryptfs_set_acl() keeps passing
> &nop_mnt_idmap because its ACLs have already been translated into global
> ids, while ecryptfs_get_acl() threads the upper idmap down.
> 
> Signed-off-by: Cai Xinchen <caixinchen1 at huawei.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261117150542.1169451-1-caixinchen1@huawei.com?part=4




More information about the Linux-security-module-archive mailing list