trace_landlo...ule_net_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_landlock_check_rule_net_port β€” Kernel API Manual, bestie edition πŸ¦‹

okay so real talk, this is a (9) page from the Kernel API Manual (yes that's the manual name, we're being ✨official✨ today) and it's all about one iconic little tracepoint: trace_landlock_check_rule_net_port. She's giving "I log things when Landlock checks a network port rule" and honestly? obsessed. 🌸


✨ NAME ✨

trace_landlock_check_rule_net_port β€” network port rule evaluated πŸ‘‘

like, the trace event that fires when a network port rule gets evaluated. that's the whole vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void trace_landlock_check_rule_net_port (const struct landlock_domain
*domain , const struct landlock_rule *rule , u64 access_request , u64
port );

no cap, that's the exact signature, spaces and all. don't touch the spacing, she's delicate. 🫢


🌈 ARGUMENTS 🌈

  • domain β€” the enforcing domain, aka the main character here. literally never NULL, so don't even try it. 🚫
  • rule β€” the matching rule, carrying per-layer access masks. also never NULL. two for two on the "never NULL" agenda, we love a consistent queen. πŸ‘‘
  • access_request β€” the access mask being requested. that's the ask. πŸ“¨
  • port β€” the network port being checked, in host endianness (yes, host. not network. don't @ me). πŸ”Œ

πŸ’– DESCRIPTION πŸ’–

so this one is emitted for each rule that matches during a network access check. every single match, she's there. 🌟

the grants array shows the requested rights the rule grants at each domain layer β€” it's basically a little receipt of who's allowed what at every level. 🧾

and if you're sitting there like "okay but how do I actually read that array" β€” the manual says to go see Documentation/trace/events-landlock.rst for how to interpret it. iykyk, go read the docs bestie, it's literally right there. πŸ“–βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

that's the whole friend group right there, go say hi. πŸ’œ


lowkey a reminder: domain and rule are never NULL in this call. that's not a suggestion, that's the contract. 🫑

okay that's the page!! this one came from ./include/trace/events and she's dated October 2026 β€” so yeah, future icon behavior honestly. mwah, go trace something pretty πŸ’‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from