Page MenuHomeFreeBSD

audit: Fix logging of IPv6 addresses
Needs ReviewPublic

Authored by gallatin on Apr 18 2023, 12:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 14, 9:14 AM
Unknown Object (File)
Tue, May 14, 8:38 AM
Unknown Object (File)
Tue, May 14, 8:02 AM
Unknown Object (File)
Jan 6 2024, 12:46 AM
Unknown Object (File)
Dec 20 2023, 7:45 AM
Unknown Object (File)
May 7 2023, 4:38 AM
Subscribers

Details

Summary

Our audit logging was not logging the IP/port information for IPv6 accept() syscalls. It turns out there were 2 problems

  1. kaudit_to_bsm: Log IPv6 as well as IPv4 and unix addrs
  2. au_to_sock_inet128: Treat ports the same way as au_to_sock_inet32(). Just pushing a uint16 causes byte ordering problems on little endian systems.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped