Bug 158234
Summary: | ftp can't connect to servers in passive mode | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nalin Dahyabhai <nalin> | ||||
Component: | ftp | Assignee: | Jiri Ryska <jryska> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | jakub, jorton, mitr, roland | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 0.17-26 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-05-24 20:21:30 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 136450 | ||||||
Attachments: |
|
Description
Nalin Dahyabhai
2005-05-19 19:26:20 UTC
Created attachment 114576 [details]
patch to existing patch to call connect() with correct values
I can't reproduce this, neither using ftp nor with a minimal test program. (looking at strace of ftp, libc uses sizeof(struct sockaddr_in6) when connecting to AF_INET too). glibc-2.3.5-6 kernel-2.6.11-1.1276_FC4 and kernel-2.6.11-1.1323_FC4 ping glibc guys, possible glibc involvement? There is none. glibc's connect/accept/listen and other socket calls are either straight syscalls, or trivial wrappers around socketcall syscall. So whether connect succeeds or fails is solely kernel's decision. Confirmed here with current Raw Hide. Simple repro is: # service vsftpd start # /usr/bin/ftp localhost ... ftp> ls 227 Entering Passive Mode (172,16,18,217,117,95) ftp: connect: Invalid argument confirmed also that it works fine after applying Nalin's patch, which is clearly doing the Right Thing. Reproduced - this check is only in SELinux (and only for TCP). Fixed in ftp-0.17-26, thanks! |