trace_landlo...ule_net_port(9)
π 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 neverNULL, so don't even try it. π«ruleβ the matching rule, carrying per-layer access masks. also neverNULL. 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 π¦
- the 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_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_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)
that's the whole friend group right there, go say hi. π
lowkey a reminder:domainandruleare neverNULLin 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
- 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