apparmor_socket_post_create(9)
β¨ apparmor_socket_post_create(9) β¨
okay so bestie, welcome to the kernel API manual for apparmor_socket_post_create(9) β yes it's a whole function AND a whole page name, we contain multitudes π
πΈ NAME πΈ
apparmor_socket_post_create β literally just setup the per-socket security struct π
π¦ SYNOPSIS π¦
int apparmor_socket_post_create (struct socket *sock , int family , int
type , int protocol , int kern );
π ARGUMENTS π
sockβ the socket that is being setup, she's the main character here πfamilyβ the family of the socket being created, like her whole ancestrytypeβ the type of the socket, iykykprotocolβ the protocol of the socket, it's giving specificskernβ this flag means the socket is a special kernel socket, highkey important π«Ά
π NOTE π
- kernel sockets labeled
kernel_tused to use unconfined β that's the lore, fr fr - the socket may not have
skhere if it was created withsock_create_liteorsock_allocπ those should be accept cases, and they'll be handled insock_graft. so likeβ¦ don't panic whenskis missing, it's not a bug, it's a vibe check you have to pass π
ngl, that second one is the important one β noskdoes not mean something broke, it means somebody usedsock_create_liteorsock_alloc, andsock_graftis gonna pick it up later π§
π₯ SEE ALSO π₯
if you're obsessed with this one (and why wouldn't you be), the kernel file is ./security/apparmor/lsm.c β go read it, it ate π
and here's the whole friend group, no cap:
common_perm(9)common_perm_cond(9)common_perm_dir_dentry(9)common_perm_rm(9)common_perm_create(9)apparmor_uring_override_creds(9)apparmor_uring_sqpoll(9)apparmor_bprm_committing_creds(9)apparmor_bprm_committed_creds(9)apparmor_sk_clone_security(9)apparmor_unix_stream_connect(9)apparmor_unix_may_send(9)apparmor_socket_bind(9)apparmor_socket_getpeersec_stream(9)apparmor_socket_getpeersec_dgram(9)apparmor_sock_graft(9)apparmor_socket_sock_rcv_skb(9)set_init_ctx(9)
β and that's the whole page!! this one lives in ./security/apparmor and it's dated October 2026 β so yeah, mark your calendars bestie, she's from the future π¦π
π¦ 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