set_init_ctx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 than unconfined

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:


🌈 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