landlock_merge_ruleset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 🌈


with love from the source ./security/landlock, dated October 2026, for landlock_merge_ruleset(9) πŸŽ€πŸ’–

πŸ“¦ where this page comes from