posix_acl_chmod(9)
πΈ posix_acl_chmod(9) πΈ
okay bestie, welcome to the Kernel API Manual corner of the group chat π«Ά β this is the page for posix_acl_chmod, and it's literally about chmod-ing a posix acl. no cap.
π NAME π
posix_acl_chmod β chmod a posix acl. that's the whole name, and it ate π
β¨ SYNOPSIS β¨
int posix_acl_chmod (struct mnt_idmap *idmap , struct dentry *dentry ,
umode_t mode );
π ARGUMENTS π
idmapβ the idmap of the mount the inode was found from. yes bestie, that exact mount's idmap.dentryβ the dentry to check permissions on. permission-check main character energy.modeβ the new mode of the inode. fresh mode, fresh vibe.
π¦ DESCRIPTION π¦
so here's the tea β: if the dentry has been found through an idmapped mount, you absolutely must pass the idmap of the vfsmount through idmap. not optional, bestie.
this function will then take care to map the inode according to idmap before checking permissions. it's giving responsible β¨
on non-idmapped mounts, or if permission checking is to be performed on the raw inode, simply pass nop_mnt_idmap. that's the shortcut, and it's valid here π«Ά
lowkey important: pass the rightidmapfor idmapped mounts, ornop_mnt_idmapfor the non-idmapped/raw-inode case. the function handles the mapping before permission checking, periodt.
π SEE ALSO π
- Kernel file
./fs/posix_acl.c posix_acl_update_mode(9)posix_acl_from_xattr(9)vfs_posix_acl_to_xattr(9)vfs_set_acl(9)vfs_get_acl(9)vfs_remove_acl(9)
mwah π this page comes from ./fs and it's dated October 2026 β thanks for coming to my Unix talk, bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms