Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 249430

Summary: hosts.allow 255.255.255.255 netmask broken for localhost
Product: Red Hat Enterprise Linux 4 Reporter: tsc5yc
Component: tcp_wrappersAssignee: Petr Lautrbach <plautrba>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 4.5   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:22:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tsc5yc 2007-07-24 17:18:50 UTC
Description of problem:
hosts.allow net/mask pattern does not work as expected, at least while using
sendmail

Version-Release number of selected component (if applicable):
# rpm -qa | grep tcp_wrappers
tcp_wrappers-7.6-37.2
tcp_wrappers-7.6-37.2

note: twice?

How reproducible:
Every time

Steps to Reproduce:
1. add "ALL: ALL" to /etc/hosts.deny
2. add "sendmail: 127.0.0.1/255.255.255.255" to /etc/hosts.allow
3. #chkconfig sendmail on; service sendmail start
4. #echo "testing" | mail -s "Test" me
5. check /var/log/maillog
  
Actual results:
Jul 24 11:48:38 __ sendmail[21230]: ____________: tcpwrappers (___________,
127.0.0.1) rejection

Expected results:
tcpwrappers to allow sendmail: 127.0.0.1

Additional info:
sendmail: 126.0.0.1/254.255.255.255
works, but
sendmail: 126.0.0.1/255.255.255.255
does NOT work either
if 126/254 succeeds, why does neither 127/255 nor 126/255 work?

Comment 2 Tomas Janousek 2007-07-25 13:43:07 UTC
The fix is really simple, but won't make it to 4.6. Please, use just "127.0.0.1"
instead.

Comment 3 RHEL Program Management 2008-02-01 19:04:39 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 4 Jiri Pallich 2012-06-20 13:22:55 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.