Bugzilla – Bug 105215
very long lines in /etc/host.deny cause clients be accepted
Last modified: 2005-08-23 00:26:08 UTC
If there is a _very_ long line (2048 bytes) in /etc/host.{allow,deny}, the library allows connections regardles of the line. Just a warning is sent to syslog. A more reasonable behavior would be to deny connections when the config file cannot be parsed. Of course, the config file is created by the system administrator, so it's his responsibility to test the configuration. And such a long line will be rarely needed.
Created attachment 46325 [details] a long line with DENY, which in fact allows access An example
This behaviour is used on all platforms with tcp_wrapper a long time and change it may confuse current administrators. For checking config files, they have to use tcpdchk utility (man tcpdchk(8)).