matches_auditlog(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay so matches_auditlog is here to check the audit log for a network access denial β€” that’s the whole vibe. And yes bestie, this is the matches_auditlog(9) page from the Kernel API Manual, so you know it’s official. πŸ’–

🌸 SYNOPSIS 🌸

The signature is exactly this, no cap:

int matches_auditlog (const int audit_fd , const char *const blockers ,
       const char *const dir_addr , const char *const addr , const char *const
       dir_port , const __u16 port );

πŸŽ€ ARGUMENTS πŸŽ€

Here’s the cast of arguments, and every single one matters. No skipping, periodt. πŸ’…

  • const int audit_fd β€” the audit file descriptor. That’s the fd, iykyk. πŸŽ€
  • const char *const blockers β€” a regex-escaped blocker string, e.g. "net.bind_tcp". It’s already regex-escaped, so don’t come for me. ✨
  • const char *const dir_addr β€” either "saddr" or "daddr". It gets ignored if addr is NULL. Literally those are the two options. πŸ‘‘
  • const char *const addr β€” a regex-escaped IP address string, or NULL. Main character energy right here. 🌟
  • const char *const dir_port β€” either "src" or "dest". It gets ignored if addr is NULL. Yep, same rule. πŸ¦‹
  • const __u16 port β€” a port number. It gets ignored if addr is NULL. That’s the tea, fr fr. πŸ“

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./tools/testing/selftests/landlock/net_test.c β€” go look, bestie. πŸ”₯

kay bye bestie 🫢 β€” source/version: ./tools/testing/selftests/land..., dated October 2026. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from