smack_sk_clone_security(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

smack_sk_clone_security β€” Copy security context.

okay so we're in the Kernel API Manual, page smack_sk_clone_security(9), and the assignment is literally β€œCopy security context.” iconic, brief, to the point. πŸ’…

✨ SYNOPSIS ✨

void smack_sk_clone_security (const struct sock *sk , struct sock *newsk
       );

the void is right there, bestie β€” the synopsis is giving exactly that. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the old socket.
  • newsk β€” the new socket.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the description is short and sweet: it copies the security context of the old socket pointer to the cloned β€” and yes, that sentence literally ends at β€œcloned” in the source, so no cap, we're not inventing extra lore. it's giving β€œcopy the security context, that's the whole job.” ✨

🌸 SEE ALSO 🌸

the Kernel file ./security/smack/smack_lsm.c is the source-side main character, and it's linked up with this whole (9) friend group:


xoxo, sourced from ./security/smack, dated October 2026, and stamped smack_sk_clone_security(9) β€” slay. πŸ’–βœ¨

πŸ“¦ where this page comes from