landlock_merge_ruleset(9)
π¦ NAME π¦
bestie, welcome to landlock_merge_ruleset(9) from the Kernel API Manual β itβs giving βmerge a ruleset with a domainβ energy π
β¨
landlock_merge_ruleset β Merge a ruleset with a domain.
β¨ SYNOPSIS β¨
struct landlock_domain * landlock_merge_ruleset (struct landlock_domain
*const parent , struct landlock_ruleset *const ruleset );
π ARGUMENTS π
parentβ Parent domain. The main-character domain youβre building on πΈrulesetβ New ruleset to be merged. Fresh ruleset, come on in π«Ά
π DESCRIPTION π
okay so the current task is literally requesting to be restricted π and bestie, the subjective credentials must not be in an overridden state. cf. landlock_init_hierarchy_log. No cap, thatβs important π
π¨ HARD REQUIREMENT: the caller must hold ruleset->lock. Do not skip this, fr fr.
π RETURN π
On success, you get a new domain merging parent and ruleset β iconic behavior π Or you get ERR_PTR on failure π
If parent is NULL, the new domain duplicates ruleset. Periodt.
π SEE ALSO π
- Kernel file
./security/landlock/domain.c landlock_unmask_layers(9)landlock_init_layer_masks(9)get_current_exe(9)landlock_init_hierarchy_log(9)landlock_get_quiet_optional_accesses(9)
with love from the source ./security/landlock, dated October 2026, for landlock_merge_ruleset(9) ππ
π¦ 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