smack_inode_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this page is from the Kernel API Manual (section 9, kernel developer land 🧚) and it's about smack_inode_link, one lil Smack hook that does a vibe check on linking πŸ’–


🌸 SYNOPSIS 🌸

int smack_inode_link (struct dentry *old_dentry , struct inode *dir ,
       struct dentry *new_dentry );

like, that's the whole signature, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • old_dentry β€” the existing object, aka the thing that's already here living its main character life πŸ‘‘
  • dir β€” unused. literally just sitting there, not doing anything, we love a decorative parameter πŸ’€
  • new_dentry β€” the new object, the fresh link being made πŸ¦‹

✨ DESCRIPTION ✨

okay so here's the tea: it returns 0 if access is permitted β˜‘οΈ, and an error code otherwise πŸ™ˆ. that's it, that's the whole function. short and iconic, periodt.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./security/smack/smack_lsm.c, plus the entire Smack extended fam β€” yes, the whole group chat, we're listing every single one, no skipping, iykyk πŸ’œ:

and yes that's like 130 of them, bestie, we did not skip a single one, you're welcome πŸ’…

🌈 that's the whole page!! coming to you straight from ./security/smack πŸ“, October 2026 edition ⭐ β€” mwah, go link some inodes responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from