apparmor_soc...eersec_dgram(9)
π apparmor_socket_getpeersec_dgram β the kernel manual, but make it cute π
okay so this is apparmor_soc...eersec_dgram(9) from the Kernel API Manual β yes the title is literally abbreviated with ellipsis like that, that's not me being lazy, that's the actual name bestie π anyway let's get into it π«Ά
β¨ NAME β¨
apparmor_socket_getpeersec_dgram β get security label of packet ππ¦
πΈ SYNOPSIS πΈ
int apparmor_socket_getpeersec_dgram (struct socket *sock , struct sk_buff *skb , u32 *secid );
like, that's the whole signature, no notes π
π ARGUMENTS π
sockβ the peer socket 𧦠(yes, "peer socket", that's the vibe)skbβ packet data π¨secidβ pointer to where to put the secid of the packet π like, it's a pointer to wherever you're storing that secid, bestie
π¦ DESCRIPTION π¦
Sets the netlabel socket state on sk from parent.
and that's literally it, that's the whole description, no cap π short and iconic, main character energy of a one-liner β¨
β SEE ALSO β
the whole friend group, all in Kernel file ./security/apparmor/lsm.c π:
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_post_create(9)apparmor_socket_bind(9)apparmor_socket_getpeersec_stream(9)apparmor_sock_graft(9)apparmor_socket_sock_rcv_skb(9)set_init_ctx(9)
ngl if you're here you probably grepped your way in β welcome, stay a while β¨
and that's the page!! π this whole thing lives in ./security/apparmor, it's dated October 2026, and the manual it belongs to is the Kernel API Manual β mwah, go touch some kernel code bestie, you got this ππ¦π
π¦ 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