landlock_get_rule_root(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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