STRUCT LANDLOCK_LAYER(9)
πΈ 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 from1π«Ά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
- 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