smack_socket_sendmsg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is smack_socket_sendmsg(9) from the Kernel API Manual β€” section 9, very official, very kernel β€” and it's literally the page for smack_socket_sendmsg: Smack check based on destination host. that's the whole vibe: Smack, sockets, destination host, we're checking it πŸ’…

✨ SYNOPSIS ✨

int smack_socket_sendmsg (struct socket *sock , struct msghdr *msg , int size );

πŸŽ€ ARGUMENTS πŸŽ€

  • sock β€” the socket. like, the actual socket, bestie 🫢
  • msg β€” the message. the thing being sent.
  • size β€” the size of the message. literally the size, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

so the rule is: it returns 0 if the current subject can write to the destination host. that's the green flag, periodt βœ…

For IPv4, this is only a question if the destination is a single label host. iykyk β€” that's the condition, don't forget it.

For IPv6, this is a check against the label of the port. no cap, that's what it's doing.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./security/smack/smack_lsm.c β€” that's home base β€” plus the whole squad, and yes there are so many of them, buckle up:

mwah πŸ’‹ β€” this page comes from ./security/smack, dated October 2026, and it's all about smack_socket_sendmsg(9). byeee 🫢

πŸ“¦ where this page comes from