matches_auditlog(9)
β¨ 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 ifaddrisNULL. Literally those are the two options. πconst char *const addrβ a regex-escaped IP address string, orNULL. Main character energy right here. πconst char *const dir_portβ either"src"or"dest". It gets ignored ifaddrisNULL. Yep, same rule. π¦const __u16 portβ a port number. It gets ignored ifaddrisNULL. 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
- 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