First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 16091
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Ahlberg (RETIRED) <aliz@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Andy Dustman <farcepest@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 16091 depends on: Show dependency tree
Bug 16091 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-02-20 14:10 0000
Current tcp-wrappers builds (7.6-r4 and -r5 at least) always apply a patch for
ipv6 support. The USE flag for ipv6 is not checked to see whether ipv6 support
is actually desired.

This would not actually be a big problem, but the current patch breaks access
control when hostnames (or domains) are used and there is no ipv6 networking
support used. ipv4 network specifications work fine.

Example:

/etc/hosts.allow:
ALL: LOCAL
sshd: kenny.terry.uga.edu

/etc/hosts.deny:
ALL: ALL

# tcpdmatch -i /dev/null sshd kenny.terry.uga.edu
warning: sshd: no such process name in /dev/null
warning: host name/address mismatch: ::ffff:128.192.28.8 != kenny.terry.uga.edu
client:   hostname paranoid
client:   address  ::ffff:128.192.28.8
server:   process  sshd
matched:  /etc/hosts.deny line 1
access:   denied
 
warning: host address 80c0:1c08:6b65:6e6e:792e:7465:7272:792e->name lookup failed
client:   address  80c0:1c08:6b65:6e6e:792e:7465:7272:792e
server:   process  sshd
matched:  /etc/hosts.deny line 1
access:   denied

It appears that it checks ipv6 DNS records, and doesn't bother to fall back to
ipv4 if they aren't present. (Yes, the forward and reverse match in ipv4 in this
case.)

The ipv6 patch either needs to be updated to do the correct sequence of DNS
lookups, or there needs to be an option to avoid including it (the current
default USE flags would exclude the patch).

------- Comment #1 From Andy Dustman 2003-03-14 09:15:15 0000 -------
Yay or nay?

------- Comment #2 From Andy Dustman 2003-07-21 12:34:39 0000 -------
This is still a real bug that is easily duplicated. If you don't have ipv6
support, tcp-wrappers are BROKEN when using domain names in
/etc/hosts.{allow,deny}

------- Comment #3 From Daniel Ahlberg (RETIRED) 2003-08-04 17:11:00 0000 -------
This should be fixed in tcp-wrappers-7.6-r6. If not, please reopen this bug.

------- Comment #4 From Andy Dustman 2003-08-15 15:21:41 0000 -------
-r6 does seem to fix it, thanks. I hope this is marked stable soon.

First Last Prev Next    No search results available      Search page      Enter new bug