![]() |
breaking ftp connections with vsftpd on -current
since a recent -current upgrade I've had this issue that ftp connections in my LAN would break as soon as a data connection was opened.
I am currently on RC4. Symptoms: midnight commander refuses to enter a directory with a red popup saying Code:
Error - cannot change directoryCode:
ftp> lsCode:
ftp> paI'm investigating, but maybe someone has an idea where else to look? Update: normally started from inetd without tcp wrappers, i have tried standalone mode. result is the same. |
Strace reveals that the vsftpd server process is killed by a SIGSYS signal. Internet studies reveal that this signal may be related to something called "seccomp filter sandboxing" which was newly introduced in vsftpd-3.0.0.
Reverting vsftpd back to 2.3.4 (ie. the package delivered in Slackware 13.37) solves the issue. With regards to Slackware 14, how to proceed with this? |
quick update: what I didn't know is the option
Code:
seccomp_sandbox=NOThe other thing I found out: the issue is probably related to my kernel version (3.5.3) or config. Good news for Slackware 14.0: the issue is not present when booting the distro kernel. Still investigating. |
update: Chris has put out version 3.0.1 which solves the issue. I had a build issue though (that can be overcome). We'll see how this pans out.
|
I built vsftpd 3.0.1 using -Current SlackBuild and it's OK here
|
Strange. I found the linker choking on the command line created with the help of the script vsf_findlibs.sh. The script creates the following output on my system:
Code:
-lwrapPS: just as I re-read my post it suddenly occurs to me that the missing $LIBDIRSUFFIX might be the problem. PPS: confirmed |
for those interested, there was another seccomp issue which has now been fixed upstream by version 3.0.2.
Regarding the build issue, it only occurs in a multilib environment. The correct way of fixing it is to replace all occurrences of /lib/ by /lib$LIBDIRSUFFIX/ in vsf_findlibs.sh, and by exporting the environment variable LIBDIRSUFFIX in the Slackbuild. But as I said, it only really causes a build problem in a multilib environment, not in the Slackware binary distribution. Marking issue as solved. |
| All times are GMT -5. The time now is 09:47 AM. |