Page MenuHomeFreeBSD

tcp_wrappers: recognize IPv6 addresses/prefixes
ClosedPublic

Authored by glebius on May 11 2023, 7:11 PM.
Tags
None
Referenced Files
F84003090: D40070.diff
Sat, May 18, 1:33 AM
Unknown Object (File)
Thu, May 2, 2:20 PM
Unknown Object (File)
Thu, May 2, 3:54 AM
Unknown Object (File)
Mar 19 2024, 9:47 AM
Unknown Object (File)
Jan 30 2024, 12:17 AM
Unknown Object (File)
Dec 23 2023, 12:17 AM
Unknown Object (File)
Dec 12 2023, 1:08 AM
Unknown Object (File)
Dec 10 2023, 7:09 AM
Subscribers

Details

Summary

Intentionally or not, but the libwrap was written in such manner that
if your /etc/hosts.allow doesn't have any domain names, neither smart
keywords like LOCAL or KNOWN, then it will not try to resolve the
client address during the hosts check. This was achieved with the
NOT_INADDR() check that matched IPv4 addresses/prefixes. Extend this
to also skip resolve if client list token looks like IPv6.

PR: 269456

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51454
Build 48345: arc lint + arc unit