smack_netlbl_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smack_netlbl_delete πŸ’…

okay so this is a page from the Kernel API Manual (yes, the kernel has its own manual, slay) and it's about one tiny but iconic function. buckle up bestie, it's a short one but it eats πŸ“


✨ NAME ✨

smack_netlbl_delete β€” literally just: remove the secattr from a socket. that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

void smack_netlbl_delete (struct sock *sk );

no return value, no drama, it's giving void main character energy πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the socket. that's it. that's the argument. the socket in question πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this does is it removes the outbound smack value from a socket. like, the socket had an outbound label attached to it and this function is the one that takes it off. poof. gone. no cap ✨


🌈 SEE ALSO 🌈

the entire smack family tree, fr fr. like this function has SO many siblings, it's a whole dynasty πŸ‘‘. every single one of these is a real page, so go read them if you're obsessed:

ngl if you read all of those in one sitting you deserve a little treat πŸŽ€

also worth shouting out: the kernel file it lives in is ./security/smack/smack_lsm.c β€” that's where the magic happens, iykyk πŸ’œ


and that's the whole page bestie!! short, sweet, lowkey iconic 🌟 this one came out of ./security/smack and it's dated October 2026, filed under smack_netlbl_delete(9). mwah, go touch some sockets πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from