trace_landlo...path_beneath(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 validated landlock_add_rule_flags value 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 to landlock_insert_rule after normalization ✨. It is NOT the raw sys_landlock_add_rule argument 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 🧚


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