evm_inode_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… evm_inode_setattr(9) β€” a Kernel API Manual moment

ok so bestie, welcome to evm_inode_setattr(9) from the Kernel API Manual β€” yes that's the manual name, and yes it sounds fancy, but honestly this one's a little bouncer standing at the door of your file attributes. Let me tell you everything, no cap. 🫢


✨ SYNOPSIS ✨

int evm_inode_setattr (struct mnt_idmap *idmap , struct dentry *dentry ,
struct iattr *attr );

like, three args, returns an int, it's giving "small function, big responsibility" energy πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • idmap β€” the idmap of the mount. yeah, the whole mount's mapping situation.
  • dentry β€” a pointer to the dentry that's getting affected. the actual file-ish thing in question πŸ¦‹
  • attr β€” an iattr structure holding the new file attributes. i.e. the new fit it's trying to put on ✨

🌸 DESCRIPTION 🌸

okay so here's the vibe: this function permits updating file attributes when files have a valid EVM signature. slay. that's the green light. πŸ’š

but β€” and this is the important part, don't skip it β€” there's one exception: not when the file has an immutable portable signature. in that case? no update. periodt. πŸ”₯

so tl;dr: valid EVM signature = you're in. immutable portable signature = absolutely not, the door stays closed. 😭


πŸ‘‘ SEE ALSO πŸ‘‘


bestie this is the whole EVM extended-attribute friend group and they ALL showed up to the party. don't leave without saying hi to every single one πŸ§šπŸ’œ

and that's the page!! mwah πŸ’‹ sign-off time: this lil beauty comes from ./security/integrity/evm and it's dated October 2026 β€” iconic, timeless, no notes. πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from