STRUCT LANDLOCK_HIERARCHY(9)
π NAME π
Okay bestie, this page is from the Kernel API Manual, and itβs all about struct landlock_hierarchy β a node in a domain hierarchy. Itβs giving family-tree energy for Landlock domains, and yes, every field matters, no cap π.
β¨ SYNOPSIS β¨
Hereβs the literal struct shape, copy-paste exact, donβt @ me:
struct landlock_hierarchy {
struct landlock_hierarchy *parent;
refcount_t usage;
#ifdef CONFIG_SECURITY_LANDLOCK_LOG;
enum landlock_log_status log_status;
atomic64_t num_denials;
u64 id;
const struct landlock_details *details;
u32 log_same_exec : 1, log_new_exec : 1;
struct access_masks quiet_masks;
#endif ;
};
π Members π
parentβ pointer to the parent node, orNULLif it is a root Landlock domain. Root domain = no parent, main character energy π .usageβ number of potential children domains plus their parent domain. The whole little domain fam gets counted π«Ά.log_statusβ whether this domain should be logged or not. Because concurrent log entries may be created at the same time, it is still possible to have several domain records of the same domain. So yeah, concurrent records can absolutely happen β concurrency said βnot my problemβ π.num_denialsβ number of access requests denied by this domain. Masked (i.e. never logged) denials are still counted. No sneaky hiding from the counter, periodt π₯.idβ Landlock domain ID, set once at domain creation time. One-time set, then iconic forever β¨.detailsβ information about the related domain.log_same_execβ set if the domain is not configured withLANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF. Set to true by default.log_new_execβ set if the domain is configured withLANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON. Set to false by default.quiet_masksβ bitmasks of access that should be quieted (i.e. not logged) if the related object is marked as quiet. Shhh, quiet masks are literally the mute button π€«.
π SEE ALSO π
Kernel file ./security/landlock/domain.h β plus go check out struct landlock_details(9), struct landlock_domain(9), and landlock_union_access_masks(9), bestie π¦.
okay thatβs the whole page! source/version: ./security/landlock Β· date: October 2026 Β· from the struct landlock_hierarchy(9) manual page β slay and stay safe πβ¨
π¦ 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