tomoyo_socket_connect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_socket_connect(9) πŸ’–

okay so bestie, this is a page from the Kernel API Manual β€” yes we're in kernel land today, get comfy 🫢


✨ NAME ✨

tomoyo_socket_connect β€” the little guy that does the permission check for connect() πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int tomoyo_socket_connect (struct socket *sock , struct sockaddr *addr ,
       int addr_len );

πŸŽ€ ARGUMENTS πŸŽ€

  • sock β€” a pointer to struct socket. literally just a socket pointer, that's the whole vibe 🧚
  • addr β€” a pointer to struct sockaddr. the address in question, no cap ⭐
  • addr_len β€” the size of addr. iykyk, it's the length 🌸

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: it returns 0 on success, and a negative value otherwise 😭 that's it. that's the whole description. short and iconic, honestly πŸ‘‘


🌈 SEE ALSO 🌈

kernel file ./security/tomoyo/tomoyo.c πŸ’œ plus the whole tomoyo friend group β€” collect them all like stickers πŸŽ€


and that's the whole page bestie, hope you ate πŸ’…βœ¨ the source lives over in ./security/tomoyo, dated October 2026, and this was tomoyo_socket_connect(9) β€” mwah, see you in the next manpage πŸ«ΆπŸ’–

πŸ“¦ where this page comes from