tomoyo_socket_connect(9)
π 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 tostruct socket. literally just a socket pointer, that's the whole vibe π§addrβ a pointer tostruct sockaddr. the address in question, no cap βaddr_lenβ the size ofaddr. 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 π
tomoyo_domain(9)tomoyo_cred_prepare(9)tomoyo_bprm_committed_creds(9)tomoyo_bprm_creds_for_exec(9)tomoyo_bprm_check_security(9)tomoyo_inode_getattr(9)tomoyo_path_truncate(9)tomoyo_file_truncate(9)tomoyo_path_unlink(9)tomoyo_path_mkdir(9)tomoyo_path_rmdir(9)tomoyo_path_symlink(9)tomoyo_path_mknod(9)tomoyo_path_link(9)tomoyo_path_rename(9)tomoyo_file_fcntl(9)tomoyo_file_open(9)tomoyo_file_ioctl(9)tomoyo_path_chmod(9)tomoyo_path_chown(9)tomoyo_path_chroot(9)tomoyo_sb_mount(9)tomoyo_sb_umount(9)tomoyo_sb_pivotroot(9)tomoyo_socket_listen(9)tomoyo_socket_bind(9)tomoyo_socket_sendmsg(9)tomoyo_task_alloc(9)tomoyo_task_free(9)tomoyo_init(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms