do_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– do_setattr(9) β€” Smack process attribute setting πŸ’–

okay so bestie, this is a page from the Kernel API Manual, and it's all about do_setattr β€” the Smack process attribute setter. not me being obsessed with a kernel setter, but here we are πŸ’….


🌸 NAME 🌸

do_setattr β€” Smack process attribute setting, periodt.

✨ SYNOPSIS ✨

int do_setattr (unsigned int attr , void *value , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • attr β€” the ID of the attribute. it's an unsigned int, and it's literally the "which attribute are we setting" girlie.
  • value β€” the value to set. a void *, so it's the actual payload vibe.
  • size β€” the size of the value. it's a size_t, and yes bestie it matters because that's how big the value is.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: sets the Smack value of the task. that's the whole main character move.

bestie, listen: only setting self is permitted, and only with privilege. like, no setting other tasks, no privilege-free chaos. periodt. 🫢

Returns 0 on success or an error code. that's the vibe check: zero = slay, error code = not slay 😭.

🌈 SEE ALSO 🌈

the whole Smack squad is here, iykyk:


mwah πŸ’‹ β€” this page's source/version is ./security/smack, it's dated October 2026, and it's do_setattr(9) signing off. slay and stay privileged, bestie 🫢✨

πŸ“¦ where this page comes from