apparmor_sk_clone_security(9)
π« apparmor_sk_clone_security(9) β like, the Kernel API Manual page, bestie
okay so picture this: you're deep in the kernel, section 9 of the manual, and there's this lil function called apparmor_sk_clone_security and it's literally just here to clone the sk_security field. that's it. that's the whole vibe. short king energy πβ¨
πΈ NAME πΈ
apparmor_sk_clone_security β clone the sk_security field. no cap, that's the entire job description π
π SYNOPSIS π
void apparmor_sk_clone_security (const struct sock *sk , struct sock
*newsk );
it's giving void, it's giving two struct sock pointers, it's giving absolutely nothing back because this function returns nothing π«Ά
π¦ ARGUMENTS π¦
skβ the sock that's having its security cloned. like, the original. the blueprint. the source material πnewskβ the sock getting the clone. the lucky lil copycat π±β¨
π₯ SEE ALSO π₯
Kernel file ./security/apparmor/lsm.c β and honestly the whole friend group shows up here, so say hi to:
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_unix_stream_connect(9)apparmor_unix_may_send(9)apparmor_socket_post_create(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)
ngl bestie, this one's a short read β two args, one clone, zero drama. sometimes iconic is just doing your one job πβ
mwah π this page lives in the ./security/apparmor corner of the source tree, and it's stamped October 2026 β so mark your calendars, screenshot it, send it to the group chat, and slay ππ
π¦ 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