set_init_ctx(9)
β¨ set_init_ctx β¨
okay so bestie, welcome to the kernel API manual β this one's short but she's got lore. Let's get into it π
πΈ NAME πΈ
set_init_ctx β sets a task context and a profile on the very first task. yeah. the first one. main character energy from the jump π
π¦ SYNOPSIS π¦
int set_init_ctx (void );
π ARGUMENTS π
voidβ no arguments, babes. she takes nothing. zero notes. an icon who needs no input π«Ά
π DESCRIPTION π
so what does she actually do? she sets a task context and profile on the first task, like the NAME section said. that's the whole vibe.
and then there's this:
TODO: allow setting an alternate profile thanunconfined
like... it's literally marked TODO in the source. so bestie, if you were hoping to pick a different profile β not yet. presently the alternate-profile thing is just a dream in a comment π we love an unfinished thought fr fr
π₯ SEE ALSO π₯
this is the part where the friend group shows up. all of these live in the 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_socket_getpeersec_dgram(9)apparmor_sock_graft(9)apparmor_socket_sock_rcv_skb(9)
π the sign-off π
that's the whole page, bestie β short and sweet, no cap π this one came out of the ./security/apparmor source tree, dated October 2026, and she's serving set_init_ctx(9) realness. go forth and set that context πβ¨π§
π¦ 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