STRUCT LANDLOCK_LAYER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct landlock_layer(9) β€” Kernel API Manual 🌸

Okay bestie, welcome to the cute little corner of the kernel docs where we talk about struct landlock_layer πŸ’… this one is literally access rights for a given layer β€” no cap.


πŸŽ€ NAME πŸŽ€

struct landlock_layer β€” Access rights for a given layer. That's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct landlock_layer {
    u8 level;
    struct {
      u8 quiet : 1;
    } flags;
    access_mask_t access;
 };

πŸ‘‘ Members πŸ‘‘

  • level β€” the position of this layer in the layer stack, bestie. It starts from 1 🫢
  • flags β€” the bitfield for special flags attached to this rule πŸŽ€
    • flags.quiet β€” this one suppresses denial logs for the object covered by this rule in this domain. For filesystem rules, it inherits down the file hierarchy β€” iykyk 🌈
  • access β€” a bitfield of allowed actions on the kernel object. These are relative to the object type (e.g. LANDLOCK_ACTION_FS_READ) ✨

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./security/landlock/ruleset.h, plus the whole squad:

  • 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)
  • landlock_get_rule_root(9)

Mwah πŸ’‹ this page is from ./security/landlock, dated October 2026, and it's literally struct landlock_layer(9) β€” see you in the group chat 🫢

πŸ“¦ where this page comes from