trace_landlo...path_beneath(9)
π¦ trace_landlo...path_beneath(9) π¦
okay so bestie, this page lives in the Kernel API Manual and it's literally all about trace_landlock_add_rule_path_beneath β the trace event that fires when a path-beneath rule gets added to a ruleset π
no cap, that's the whole vibe.
β¨ NAME β¨
trace_landlock_add_rule_path_beneath β the "Path-beneath rule added to a ruleset" trace event π (yes that's the official tagline, iykyk)
πΈ SYNOPSIS πΈ
void trace_landlock_add_rule_path_beneath (const struct landlock_ruleset
*ruleset , u32 flags , u64 access_rights , const struct path *path ,
const char *pathname );
π ARGUMENTS π
rulesetβ the Source ruleset. She is never NULL π like, ever. main character energy, always present.flagsβ the complete validatedlandlock_add_rule_flagsvalue that this successful call supplied π«Ά. Important: it's the value from this call, NOT the rule's accumulated quiet state. don't get it twisted bestie.access_rightsβ the canonical per-call access mask that got passed tolandlock_insert_ruleafter normalization β¨. It is NOT the rawsys_landlock_add_ruleargument and it is NOT the accumulated rule. three different things, lowkey obsessed with the distinction.pathβ the filesystem path for the rule π¦. never NULL. she's real.pathnameβ the resolved absolute path string π. also never NULL β BUT if resolution failed you get an error placeholder in there instead ππ.
π DESCRIPTION π
So here's the lore: this event is emitted by sys_landlock_add_rule under the modified ruleset's lock π. Which means the ruleset it reports is a stable snapshot β no concurrent writer can sneak in and change it while you're looking π. it's giving locked-down, immutable, iconic. periodt.
fr fr, the whole point is that you can trust what you're seeing. no race conditions invited to the party π
π§ SEE ALSO π§
- Kernel file
./include/trace/events/landlock.h Landlock trace events(9)trace_landlock_create_ruleset(9)trace_landlock_free_ruleset(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)trace_landlock_deny_scope_abstract_unix_socket(9)
and that's the whole page bestie πβ¨ππ¦πΈπ π«Ά
this absolute baddie of a manpage comes to you from ./include/trace/events, dated October 2026, and it's filed under trace_landlo...path_beneath(9) β go read the whole landlock trace event family, they all ate π₯ππβπππ
π¦ 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