Bug 18686
Summary: | /etc/hosts causes denial of localhost-only services | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Phil Venton <pventon> | ||||
Component: | xinetd | Assignee: | Trond Eivind Glomsrxd <teg> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.0 | CC: | dr, toddr, twaugh | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2000-10-09 16:37:37 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: | |||||||
Attachments: |
|
Description
Phil Venton
2000-10-09 10:06:49 UTC
Created attachment 3904 [details]
This one-liner fixes it for me. I don't think it's the right solution, but it shows where the problem is.
Verified - it segfaults when doing access control. The oneliner does not fix the problem. Huh? It does; I just tried it again, this time without building with -g or running with -d, which I did the first time. The problem is that the str_addr comes from a static variable that's overwritten with each entry parsed. So the problem only shows itself on entries that are not the last one to be read. I installed -6 and telnet-server, and had just linuxconf-web and telnet in xinetd.d. I modified telnet to have 'only_from = localhost', and restarted xinetd. No problems. When I moved linuxconf-web to xlinuxconf-web and restart xinetd, I could telnet localhost. After making the one line change and restarting xinetd, I could. There is another shallow copy a few lines above, so the one-liner clearly doesn't _fix_ the problem entirely, but basically the problem is that shallow rather than deep copies of that string are being performed. For me, it still segfaults. I agree that the issue is shallow copies, which is why I'm currently going though it with njamd. Fixed in xinetd-2.1.8.9pre11-1 |