landlock_add_rule_flags(9)
πΈ landlock_add_rule_flags πΈ
okay so this is the Kernel API Manual page for landlock_add_rule_flags(9), bestie β and it's literally all about one flag. No cap, every crunchy detail is staying. π«Ά
β¨ Flags β¨
LANDLOCK_ADD_RULE_QUIETβ okay so this flag works together with thequiet_*fields instruct landlock_ruleset_attrto control whether Landlock logs audit messages when this layer denies access to the objects covered by this rule. π
When logging is enabled and Landlock denies an access, it suppresses the log only if all of these are true:
- this layer is the innermost layer that denied the access;
- all accesses denied by this layer are part of the
quiet_*fields in the relatedstruct landlock_ruleset_attr; - the object (or one of its parents, for filesystem rules) is marked as "quiet" via
LANDLOCK_ADD_RULE_QUIET.
And because a layer only suppresses logging when that layer is the one denying access, a sandboxed program can't use this flag to "hide" access denials unless it's already denying itself that access in the first place. π
This flag's effect doesn't depend on the value of allowed_access in the passed in rule_attr. And when this flag is present, the caller is also allowed to pass in an empty allowed_access. β¨
π SEE ALSO π
- Kernel file
./include/uapi/linux/landlock.hstructlandlock_ruleset_attr(9) landlock_create_ruleset_flags(9)landlock_restrict_self_flags(9)enum landlock_rule_type(9)struct landlock_path_beneath_attr(9)struct landlock_net_port_attr(9)fs_access(9)net_access(9)scope(9)
and that's the whole vibe, bestie: from source ./include/uapi/linux in the Kernel API Manual, dated October 2026, all for landlock_add_rule_flags(9) β mwah ππ
π¦ 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