trace_landlo...ule_net_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– trace_landlock_add_rule_net_port β€” a network-port rule just landed in a ruleset πŸŽ€

okay so this one's from the Kernel API Manual (that's the manual name, bestie, section 9 β€” kernel internals, iykyk), and it's literally a tracepoint page. It's giving "backstage pass to the Landlock trace events" energy. Let's go ✨


🌸 SYNOPSIS 🌸

void trace_landlock_add_rule_net_port (const struct landlock_ruleset
*ruleset , u32 flags , u64 access_rights , u64 port );

that's the whole vibe β€” a void function, four args, no return value, no notes. slay πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ruleset β€” the source ruleset, and she is never NULL. fr fr, never. πŸ‘‘
  • flags β€” the complete, validated landlock_add_rule_flags value that this successful call supplied. heads up tho: this is not the rule's accumulated quiet state, don't get it twisted πŸ™ˆ
  • access_rights β€” the canonical per-call access mask that got passed to landlock_insert_rule after normalization. and ngl, it's not the raw sys_landlock_add_rule argument, and it's not the accumulated rule either β€” it's the post-normalization version, periodt ✨
  • port β€” the network port in host endianness, forwarded directly from landlock_net_port_attr.port. straight from the source, no detours 🫢

πŸ’œ DESCRIPTION πŸ’œ

so this tracepoint gets emitted by sys_landlock_add_rule under the modified ruleset's lock πŸ”’ β€” which is lowkey the whole point: the reported ruleset is a stable snapshot that no concurrent writer can change. main character stability energy, honestly πŸ’…

the way that lock holds it down so nothing else can sneak in and rewrite the story? iconic. πŸŽ€

🌈 SEE ALSO 🌈

the whole squad is here, we love a full friend group πŸ’–


and that's the page!! πŸ¦‹ this little cutie lives at ./include/trace/events and the version/date footer says October 2026 β€” so yeah, mark your calendar bestie, she's from the future πŸŽ€βœ¨ see u in the next manpage, mwah πŸ’œ

πŸ“¦ where this page comes from