landlock_init_hierarchy_log(9)
π landlock_init_hierarchy_log(9) β like, the Kernel API Manual, bestie β¨
Okay so real quick: we're in the <pink>Kernel API Manual</pink> today and the star of the show is <rainbow>landlock_init_hierarchy_log π she does a partial init of a landlock_hierarchy and honestly? iconic behaviour.
β¨ NAME β¨
landlock_init_hierarchy_log β partially initialize landlock_hierarchy π¦ (yes, partially, she's not doing the whole thing, read the room)
πΈ SYNOPSIS πΈ
int landlock_init_hierarchy_log (struct landlock_hierarchy *const
hierarchy );
π ARGUMENTS π
hierarchyβ the hierarchy you're gonna initialize, bestie π that's literally it, that's the whole argument.
π DESCRIPTION π
So here's the vibe check π: the <purple>current task</purple> gets referenced as the domain that is enforcing the restriction. That's the whole point, iykyk.
β οΈ Okay this part matters and I'm not gonna sugarcoat it: the<red>subjective credentials must not be in an overridden state</red>. Like, fr fr, do not do that. π«Ά
Also, heads up β hierarchy->parent and hierarchy->usage should already be set before you come through here. She's not setting those, she's assuming you handled it. Not me doing your homework for you π
π RETURN π
<green>0</green>on success β slay β¨-errnoon failure β and that's the whole mood π
β SEE ALSO β
Kernel file ./security/landlock/domain.c, plus the whole friend group:
landlock_unmask_layers(9)landlock_init_layer_masks(9)landlock_merge_ruleset(9)get_current_exe(9)landlock_get_quiet_optional_accesses(9)
k byeee π§ this page lives in <pink>./security/landlock</pink>, dated October 2026, and it's signed <rainbow>landlock_init_hierarchy_log(9) β periodt πβ¨
π¦ 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