posix_acl_chmod(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 right idmap for idmapped mounts, or nop_mnt_idmap for the non-idmapped/raw-inode case. the function handles the mapping before permission checking, periodt.

🌈 SEE ALSO 🌈


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