trace_landlo...reate_domain(9)
πΈ NAME πΈ
okay bestie, this is the trace_landlock_create_domain page from the Kernel API Manual. The official name vibe is New domain created β that's the whole mood. π
β¨ SYNOPSIS β¨
Here's the signature, exactly as it stands:
void trace_landlock_create_domain (const struct landlock_domain *domain
, const struct landlock_ruleset *ruleset );
π ARGUMENTS π
Two args, both absolutely not nullable, and they're both kind of the main character:
domainβ the newly created domain (neverNULL, immutable after creation). Itsdomain->hierarchy->idis its unique ID, shared with thelandlock_enforce_domainandlandlock_free_domainevents;domain->hierarchy->detailsholds the requesting process. π«Άrulesetβ the source ruleset frozen into the domain (neverNULL). The ruleset lock is held across the emission, so a BPF program reading it via BTF sees the exact merged ruleset;ruleset->id/ruleset->versionidentify it. π₯
π¦ DESCRIPTION π¦
So this event is emitted by sys_landlock_restrict_self once, in the requesting thread's context, right after the merge and before thread-sync. It's giving very specific timing, and we respect it.
The flags-only path (ruleset_fd == -1) creates no domain and does not emit this event. Important! No domain, no event, no drama.
It's paired with the per-thread landlock_enforce_domain (join on domain->hierarchy->id) and balanced by a matching landlock_free_domain event. π
π SEE ALSO π
go read these next, bestie β the whole landlock trace-event friend group is here:
- Kernel file
./include/trace/events/landlock.hLandlock trace events(9) trace_landlock_create_ruleset(9)trace_landlock_free_ruleset(9)trace_landlock_add_rule_path_beneath(9)trace_landlock_add_rule_net_port(9)trace_landlock_enforce_domain(9)trace_landlock_free_domain(9)trace_landlock_check_rule_inode(9)trace_landlock_check_rule_net_port(9)trace_landlock_deny_access_fs(9)trace_landlock_deny_access_net(9)trace_landlock_deny_ptrace(9)trace_landlock_deny_scope_signal(9)trace_landlock_deny_scope_abstract_unix_socket(9)
xoxo bestie π source/version: ./include/trace/events, date: October 2026 β catch you in the Kernel API Manual, periodt. π§
π¦ 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