landlock_get_rule_root(9)
π landlock_get_rule_root(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes this is the landlock_get_rule_root(9) page and yes it's a little one but she's got lore π
πΈ NAME πΈ
landlock_get_rule_root β grab the root of a rule tree by key type π¦
β¨ SYNOPSIS β¨
struct rb_root * landlock_get_rule_root (struct landlock_rules *const
rules , const enum landlock_key_type key_type );
like literally that's the whole signature, no cap π
π«Ά ARGUMENTS π«Ά
rulesβ the rules storage you wanna look up π that's the thing we're digging through, periodt.key_typeβ the type of key, aka which tree we're selecting for π it's giving "pick your lane".
π RETURN π
A pointer to the rb_root β slay, you got your tree root π β or ERR_PTR(-EINVAL) on an unknown type π so like, if the key type isn't a real one, that's what comes back. no guessing, no improvising, just -EINVAL fr fr π
π SEE ALSO π
- Kernel file
./security/landlock/ruleset.hπ struct landlock_layer(9)union landlock_key(9)enum landlock_key_type(9)struct landlock_id(9)struct landlock_rule(9)struct landlock_rules(9)struct landlock_ruleset(9)
the whole landlock friend group honestly, go say hi π§ββοΈπ
okay that's the page!! mwah π this came from ./security/landlock, dated October 2026, and it's the landlock_get_rule_root(9) moment β go off, bestie πβπ
π¦ 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