Bug 50891 - Сервер закрывает соединение при попытке доступа к файлам
Summary: Сервер закрывает соединение при попытке доступа к файлам
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: vsftpd (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-12 15:16 MSK by Sergey Ivanov
Modified: 2024-08-12 16:42 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ivanov 2024-07-12 15:16:18 MSK
Образ:
38a47204baf4e476a5ee75826062d175 http://nightly.altlinux.org/sisyphus/tested/regular-mate-latest-x86_64.iso (от 10.07.24)

Пакет:
vsftpd-3.0.3-alt2.x86_64

Шаги воспроизведения:
Установить и настроить ftp-сервер:
# apt-get install -y vsftpd anonftp
# sed -i "s/disable.*/disable = no/" /etc/xinetd.d/vsftpd
# sed -i "s,},\tonly_from = 0/0\n}," /etc/xinetd.d/vsftpd
# systemctl restart xinetd
# systemctl enable xinetd
# touch /var/ftp/1.txt

С клиента подключиться к ftp серверу.

Результат:
Подключение к серверу выполнялся, но при попытке вывести список файлов, соединение закрывается

$ ftp 192.168.0.1
Connected to 192.168.0.1 (192.168.0.1).
220 (vsFTPd 3.0.3)
Name (192.168.0.1:user): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,0,1,196,34).
421 Service not available, remote server has closed connection

Данная ошибка так же воспроизводится в p11

Но в p10 - не воспроизводится:
образ:
28827cc95d0dc18c1fb7ecccf0ddcac8  alt-server-10.2-x86_64.iso (обновленный до p10)
$ ftp 192.168.0.2
Connected to 192.168.0.2 (192.168.0.2).
220 (vsFTPd 3.0.3)
Name (192.168.0.2:user): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,0,2,213,211).
150 Here comes the directory listing.
-rw-r--r--    1 ftp      ftp             0 Jul 12 11:33 1.txt
226 Directory send OK.

Соответственно если обновить данную машину до p11/sisyphus то данная ошибка начинает воспроизводится
Comment 1 Dmitry V. Levin 2024-07-12 15:24:49 MSK
Наверное, после очередного обновления glibc в vsftpd устарел seccomp filter.
Comment 2 Alexey Shabalin 2024-07-26 13:03:24 MSK
проверьте 3.0.5-alt1. И можно без xinetd, через systemd.
Comment 3 Sergey Ivanov 2024-08-12 16:42:12 MSK
На версии:
vsftpd-3.0.5-alt1
данная ошибка не воспроизводится
баг закрываю