smack_inode_rmdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smack_inode_rmdir(9) β€” Kernel API Manual πŸ’…

okay so bestie, welcome to the <pink>Kernel API Manual</pink> page for smack_inode_rmdir(9) β€” yes, the manual name is right there, folded in like a little name tag at the party πŸŽ€.

🌸 NAME 🌸

smack_inode_rmdir β€” the Smack check on directory deletion ✨

✨ SYNOPSIS ✨

int smack_inode_rmdir (struct inode *dir , struct dentry *dentry );

no cap, that's the exact signature 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • dir β€” the containing directory object, aka the folder that's doing the containing πŸ’…
  • dentry β€” the directory to unlink, aka the directory that's about to get unlinked πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜•: it returns 0 if current can write the containing directory and the directory. Otherwise? error code, bestie. That's it. That's the whole vibe check πŸ’€βœ¨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/smack/smack_lsm.c and this absolutely iconic stack of cross-references β€” every single one, no gatekeeping:


πŸ’– source: ./security/smack Β· version/date: October 2026 Β· page: smack_inode_rmdir(9) Β· bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from