trace_landlo..._unix_socket(9)
π¦ trace_landlo..._unix_socket(9) β the kernel API manual, bestie edition π¦
okay so this is a page from the Kernel API Manual, and the star of the show is trace_landlo..._unix_socket(9) β yes that name is long enough to need a snack break, and no we're not shortening it, it's iconic π
β¨ NAME β¨
trace_landlock_deny_scope_abstract_unix_socket β literally the trace event you get when an abstract unix socket gets its access denied by LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET. no cap, that's the whole vibe π
πΈ SYNOPSIS πΈ
void trace_landlock_deny_scope_abstract_unix_socket (const struct
landlock_hierarchy *hierarchy , bool same_exec , bool logged , u64
peer_domain_id , const struct sock *peer );
that's the signature, copy it exactly bestie, don't freestyle it π
π«Ά ARGUMENTS π«Ά
hierarchyβ the denying domain's hierarchy node. this one is neverNULL, periodt. itsidis thedomainfield π₯same_execβ abool, and it's answering "did the current task enter the denying domain itself?" yes/no energy βloggedβ the domain's audit-logging decision for this denial. like, the domain already decided whether this gets logged, and this is that answer πpeer_domain_idβ the peer's Landlock domain ID, or0if the peer is unsandboxed. zero means "no sandbox, living free" π¦peerβ the peer socket, and again neverNULL. now listen:peer_pidis best-effort β it's0for a datagram peer because there's noSO_PEERCRED, sosun_pathis the reliable peer identifier. that's the important bit, don't sleep on it π
π DESCRIPTION π
emitted when a Landlock domain denies access to a scoped-out abstract unix socket. that's it, that's the moment, that's the whole event π
π SEE ALSO π
the whole friend group, all of them, no one left out:
- 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_create_domain(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)
real talk: thepeer_pidthing is the trap. datagram peer β noSO_PEERCREDβpeer_pidis0. usesun_pathif you actually want to know who you're talking to. iykyk π§
and that's the page!! sign-off time: this one lives at ./include/trace/events, dated October 2026, filed under trace_landlo..._unix_socket(9) β the truncated title is just how it's indexed, not me being lazy, i promise ππ slay, go read your trace events πβ¨
π¦ 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